Offset KernelPTD and KernelPTA so we can directly translate a kernel virtual
authorMatthew Dillon <dillon@dragonflybsd.org>
Sat, 6 Jan 2007 19:40:55 +0000 (19:40 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sat, 6 Jan 2007 19:40:55 +0000 (19:40 +0000)
commit71152ac68e0199a212985dab32c2c87c1ea3ca5c
tree27403c52401229ed45970884352ec171f5adf88c
parenta06d2112b2262bda0f3d2895753f9b90a58a79c0
Offset KernelPTD and KernelPTA so we can directly translate a kernel virtual
address without subtracting KvaStart, simplifying the pmap code.  Also
clean up the page table initialization (make it actually work properly).

Make sure the set_sysinit_set and set_sysuninit_set sections are R/W,
because the kernel SYSINIT modifies them.

Successfully boot the virtual kernel through to the first vm_fork.
sys/platform/vkernel/i386/autoconf.c
sys/platform/vkernel/i386/cpu_regs.c
sys/platform/vkernel/i386/locore.s
sys/platform/vkernel/include/md_var.h
sys/platform/vkernel/platform/globaldata.c
sys/platform/vkernel/platform/init.c
sys/platform/vkernel/platform/pmap.c