Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9f867457 authored by Martin Schwidefsky's avatar Martin Schwidefsky
Browse files

s390: fix restore of invalid floating-point-control



The fixup of the inline assembly to restore the floating-point-control
register needs to check for instruction address *after* the lfcp
instruction as the specification and data exceptions are suppresssing.

Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 666e68e0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -51,8 +51,8 @@ static inline int restore_fp_ctl(u32 *fpc)
		return 0;

	asm volatile(
		"0:	lfpc    %1\n"
		"	la	%0,0\n"
		"	lfpc    %1\n"
		"0:	la	%0,0\n"
		"1:\n"
		EX_TABLE(0b,1b)
		: "=d" (rc) : "Q" (*fpc), "0" (-EINVAL));