Page MenuHomeFreeBSD

D24483.diff
No OneTemporary

D24483.diff

Index: head/lib/libc/riscv/gen/setjmp.S
===================================================================
--- head/lib/libc/riscv/gen/setjmp.S
+++ head/lib/libc/riscv/gen/setjmp.S
@@ -100,6 +100,11 @@
END(setjmp)
ENTRY(longjmp)
+ /* Check the magic value */
+ ld t0, 0(a0)
+ ld t1, .Lmagic
+ bne t0, t1, botch
+
addi sp, sp, -(4 * 8)
sd a0, (0 * 8)(sp)
sd ra, (1 * 8)(sp)
@@ -115,11 +120,6 @@
ld ra, (1 * 8)(sp)
ld a0, (0 * 8)(sp)
addi sp, sp, (4 * 8)
-
- /* Check the magic value */
- ld t0, 0(a0)
- ld t1, .Lmagic
- bne t0, t1, botch
/* Restore the stack pointer */
ld t0, 8(a0)

File Metadata

Mime Type
text/plain
Expires
Fri, Sep 11, 6:15 PM (4 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38722983
Default Alt Text
D24483.diff (605 B)

Event Timeline