Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108635994
D46400.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
458 B
Referenced Files
None
Subscribers
None
D46400.diff
View Options
diff --git a/sys/riscv/riscv/vm_machdep.c b/sys/riscv/riscv/vm_machdep.c
--- a/sys/riscv/riscv/vm_machdep.c
+++ b/sys/riscv/riscv/vm_machdep.c
@@ -179,6 +179,8 @@
tf->tf_sp = STACKALIGN((uintptr_t)stack->ss_sp + stack->ss_size);
tf->tf_sepc = (register_t)entry;
tf->tf_a[0] = (register_t)arg;
+ tf->tf_ra = 0; /* Tell unwinders there is no return address. */
+ tf->tf_s[0] = 0; /* Tell unwinders there is no stack frame above. */
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 28, 12:40 AM (10 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16228128
Default Alt Text
D46400.diff (458 B)
Attached To
Mode
D46400: [RISC-V] Set ra to zero when calling into userspace
Attached
Detach File
Event Timeline
Log In to Comment