Set kernel_vm_end to virtual_start instead of virtual_end so it can be used
commit67ea1f5ed790a07b7c1de7be55f87347457e8a9e
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 12 Jan 2007 18:03:48 +0000 (12 18:03 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 12 Jan 2007 18:03:48 +0000 (12 18:03 +0000)
tree9449c3bd6edc1d25411b17f7967239b2f967c00d
parentd58f5717db2ecad975b2596148643777b8cd375e
Set kernel_vm_end to virtual_start instead of virtual_end so it can be used
to detemine how much KVM has been reserved so far (so vm.kvm_free works).

As part of the same deal, redo pmap_growkernel() to just increase
kernel_vm_end up to its limit, instead of just panicing.

Remove in incorrect NULLing out of pmap->pm_pdir.  This was causing the
kernel_map to grow forever until it ran out of space and the system paniced.
sys/platform/vkernel/platform/init.c
sys/platform/vkernel/platform/pmap.c