Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151144217
D22656.id65243.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D22656.id65243.diff
View Options
Index: head/lib/libc/riscv/gen/_setjmp.S
===================================================================
--- head/lib/libc/riscv/gen/_setjmp.S
+++ head/lib/libc/riscv/gen/_setjmp.S
@@ -39,8 +39,7 @@
ENTRY(_setjmp)
/* Store the magic value and stack pointer */
- la t0, .Lmagic
- ld t0, 0(t0)
+ ld t0, .Lmagic
sd t0, (0 * 8)(a0)
sd sp, (1 * 8)(a0)
addi a0, a0, (2 * 8)
@@ -89,8 +88,7 @@
ENTRY(_longjmp)
/* Check the magic value */
ld t0, 0(a0)
- la t1, .Lmagic
- ld t1, 0(t1)
+ ld t1, .Lmagic
bne t0, t1, botch
/* Restore the stack pointer */
Index: head/lib/libc/riscv/gen/setjmp.S
===================================================================
--- head/lib/libc/riscv/gen/setjmp.S
+++ head/lib/libc/riscv/gen/setjmp.S
@@ -53,8 +53,7 @@
addi sp, sp, (2 * 8)
/* Store the magic value and stack pointer */
- la t0, .Lmagic
- ld t0, 0(t0)
+ ld t0, .Lmagic
sd t0, (0 * 8)(a0)
sd sp, (1 * 8)(a0)
addi a0, a0, (2 * 8)
@@ -119,8 +118,7 @@
/* Check the magic value */
ld t0, 0(a0)
- la t1, .Lmagic
- ld t1, 0(t1)
+ ld t1, .Lmagic
bne t0, t1, botch
/* Restore the stack pointer */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Apr 7, 9:41 AM (6 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31023871
Default Alt Text
D22656.id65243.diff (1 KB)
Attached To
Mode
D22656: Use a single 'ld' to read the jmpbuf magic values instead of 'la; ld'.
Attached
Detach File
Event Timeline
Log In to Comment