Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145826820
D24483.id70737.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
581 B
Referenced Files
None
Subscribers
None
D24483.id70737.diff
View Options
Index: lib/libc/riscv/gen/setjmp.S
===================================================================
--- lib/libc/riscv/gen/setjmp.S
+++ 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)
@@ -116,11 +121,6 @@
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)
mv sp, t0
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Feb 26, 12:05 AM (8 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28997771
Default Alt Text
D24483.id70737.diff (581 B)
Attached To
Mode
D24483: Check the magic value in longjmp() before calling sigprocmask().
Attached
Detach File
Event Timeline
Log In to Comment