From a9b2d9ae1396985680fda02b72db5b9c652d645a Mon Sep 17 00:00:00 2001 From: davem Date: Sun, 3 Dec 1995 02:24:16 +0000 Subject: [PATCH] Restore condition codes if we pull the special_fp_store trick before returning from the trap. --- sys/arch/sparc/sparc/locore.s | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/arch/sparc/sparc/locore.s b/sys/arch/sparc/sparc/locore.s index 5fe3bf0cea9..0ada5b63f1f 100644 --- a/sys/arch/sparc/sparc/locore.s +++ b/sys/arch/sparc/sparc/locore.s @@ -1340,6 +1340,8 @@ fp_exception: EMPTY sethi %hi(savefpcont), %l4 ! yes, "return" to the special code or %lo(savefpcont), %l4, %l4 + wr %l0, 0x0, %psr + nop; nop; nop; jmp %l4 rett %l4 + 4 -- 2.20.1