Clear frame pointer in cpu_fork() on riscv64
authorvisa <visa@openbsd.org>
Tue, 22 Feb 2022 07:47:46 +0000 (07:47 +0000)
committervisa <visa@openbsd.org>
Tue, 22 Feb 2022 07:47:46 +0000 (07:47 +0000)
commit57b3f773e3bfec21e2bb57fa2b1bca5f3540e15d
tree544461dbc54cbfe0342942a109a1d5ba4dc1b5e8
parent110e1310d7e6b3e32b5aa0c49a6d245e6f1a8750
Clear frame pointer in cpu_fork() on riscv64

This ensures the chain of call frames is terminated properly, preventing
errors when unwinding kernel stacks.

OK miod@ kettenis@
sys/arch/riscv64/riscv64/cpuswitch.S
sys/arch/riscv64/riscv64/vm_machdep.c