diff options
author | alc <alc@FreeBSD.org> | 2002-12-30 05:55:41 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2002-12-30 05:55:41 +0000 |
commit | 71afac1c55a30c674e21b48b1f62e4d16fa5c575 (patch) | |
tree | df3f6b35668eb0f52653d869450f002cc3f71ddc | |
parent | 8dbf6198d3647831b63eecc5c0a4048c5aaf70a7 (diff) | |
download | FreeBSD-src-71afac1c55a30c674e21b48b1f62e4d16fa5c575.zip FreeBSD-src-71afac1c55a30c674e21b48b1f62e4d16fa5c575.tar.gz |
- Mark the kernel_map as a system map immediately after its creation.
- Correct a cast.
-rw-r--r-- | sys/vm/vm_kern.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c index 82ed9d0..23ba0d2 100644 --- a/sys/vm/vm_kern.c +++ b/sys/vm/vm_kern.c @@ -524,11 +524,11 @@ kmem_init(start, end) vm_map_t m; m = vm_map_create(kernel_pmap, VM_MIN_KERNEL_ADDRESS, end); + m->system_map = 1; vm_map_lock(m); /* N.B.: cannot use kgdb to debug, starting with this assignment ... */ kernel_map = m; - kernel_map->system_map = 1; - (void) vm_map_insert(m, NULL, (vm_offset_t) 0, + (void) vm_map_insert(m, NULL, (vm_ooffset_t) 0, VM_MIN_KERNEL_ADDRESS, start, VM_PROT_ALL, VM_PROT_ALL, 0); /* ... and ending with the completion of the above `insert' */ vm_map_unlock(m); |