diff options
author | 1995-12-03 02:24:16 +0000 | |
---|---|---|
committer | 1995-12-03 02:24:16 +0000 | |
commit | a9b2d9ae1396985680fda02b72db5b9c652d645a (patch) | |
tree | 0598d360aa12249cd4947d3684c3e7fc8eea06d0 /sys | |
parent | we cannot jump into ddb until the interrupt has been acknowledged to the (diff) | |
download | wireguard-openbsd-a9b2d9ae1396985680fda02b72db5b9c652d645a.tar.xz wireguard-openbsd-a9b2d9ae1396985680fda02b72db5b9c652d645a.zip |
Restore condition codes if we pull the special_fp_store
trick before returning from the trap.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/sparc/sparc/locore.s | 2 |
1 files changed, 2 insertions, 0 deletions
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 |