Re: Zero frame pointer in cpu_fork() on riscv64

2022-02-21 Thread Mark Kettenis
> Date: Mon, 21 Feb 2022 17:37:22 + > From: Visa Hankala > > When setting up the stack for a (kernel) thread on riscv64, zero the > frame pointer in switchframe so that the frame chain terminates cleanly. > At the moment, the unwinding of kernel thread stacks stops to "bad frame > pointer" er

Zero frame pointer in cpu_fork() on riscv64

2022-02-21 Thread Visa Hankala
When setting up the stack for a (kernel) thread on riscv64, zero the frame pointer in switchframe so that the frame chain terminates cleanly. At the moment, the unwinding of kernel thread stacks stops to "bad frame pointer" error. OK? Index: arch/riscv64/riscv64/cpuswitch.S ==