diff options
-rw-r--r-- | sys/vm/vm_kern.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c index fc27e90..81ca681 100644 --- a/sys/vm/vm_kern.c +++ b/sys/vm/vm_kern.c @@ -497,8 +497,12 @@ kmem_init(start, end) /* N.B.: cannot use kgdb to debug, starting with this assignment ... */ kernel_map = m; (void) vm_map_insert(m, NULL, (vm_ooffset_t) 0, - VM_MIN_KERNEL_ADDRESS, start, VM_PROT_ALL, VM_PROT_ALL, - MAP_NOFAULT); +#ifdef __amd64__ + KERNBASE, +#else + VM_MIN_KERNEL_ADDRESS, +#endif + start, VM_PROT_ALL, VM_PROT_ALL, MAP_NOFAULT); /* ... and ending with the completion of the above `insert' */ vm_map_unlock(m); } |