CVSROOT:        /cvs
Module name:    src
Changes by:     v...@cvs.openbsd.org    2022/02/24 07:16:53

Modified files:
        sys/arch/riscv64/riscv64: vm_machdep.c 

Log message:
Reserve room for holding curcpu pointer in u-area

The tp register contains the curcpu pointer in kernel mode. The pointer
has to be saved and replaced with the TCB pointer in the register when
entering user mode. These steps are reversed when returning to kernel.
The curcpu pointer is saved in the u-area. Explicitly reserve room for
the pointer to make the saving more visible.

OK kettenis@

Reply via email to