Account for nkmempages as well in the pmap_growkernel() call during
authorclaudio <claudio@openbsd.org>
Mon, 4 Dec 2023 15:00:09 +0000 (15:00 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 4 Dec 2023 15:00:09 +0000 (15:00 +0000)
commit0932d38536828dd305e30d446b6cfa02e763a14d
tree33730a78ddfaaaa3a1881c6d81ef024e7a477fcd
parente8ae9400fee88c6e6c55dbe389a1b300f24fd7f8
Account for nkmempages as well in the pmap_growkernel() call during
initalisation. This way there is enough KVA mapped that kmeminit()
succeeds even with large nkmempages. This is similar to e.g. alpha.
OK miod@ kettenis@
sys/arch/arm64/arm64/machdep.c
sys/arch/riscv64/riscv64/machdep.c