Page MenuHomeFreeBSD

D46400.diff
No OneTemporary

D46400.diff

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

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)

Event Timeline