We have not been swapping out kernel stacks since forever. So just
authorkettenis <kettenis@openbsd.org>
Mon, 21 Oct 2024 18:27:34 +0000 (18:27 +0000)
committerkettenis <kettenis@openbsd.org>
Mon, 21 Oct 2024 18:27:34 +0000 (18:27 +0000)
commit40be1218187ac9a147eb467ab807421d2beeda1b
tree00e1d80b2ae6a09114c02cac5d794587bfab242f
parent169573fcb140de0976e7261776daa32cff3f2002
We have not been swapping out kernel stacks since forever.  So just
allocate the uarea with zeroed pages using km_alloc(9).  Adjust the amd64
code that creates a guard page at the top of the kernel stack to use
pmap_kremove(9) instead of pmap_remove(9) to reflect that the uarea no
longer uses "managed" pages.

ok mpi@
sys/arch/amd64/amd64/vm_machdep.c
sys/uvm/uvm_glue.c