From: davem Date: Sun, 3 Dec 1995 02:24:16 +0000 (+0000) Subject: Restore condition codes if we pull the special_fp_store X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a9b2d9ae1396985680fda02b72db5b9c652d645a;p=openbsd Restore condition codes if we pull the special_fp_store trick before returning from the trap. --- 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