summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_kern.c
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2007-01-07 07:32:04 +0000
committeralc <alc@FreeBSD.org>2007-01-07 07:32:04 +0000
commit57699b6f9c0b5672956b001a93bf64eaf7eaa325 (patch)
tree6b08290c187407b220b6e14d8f3eddc4288dcc93 /sys/vm/vm_kern.c
parent60ee690576b5f2fbbc9c52139fb13c3d946a7808 (diff)
downloadFreeBSD-src-57699b6f9c0b5672956b001a93bf64eaf7eaa325.zip
FreeBSD-src-57699b6f9c0b5672956b001a93bf64eaf7eaa325.tar.gz
Declare the map entry created by kmem_init() for the range from
VM_MIN_KERNEL_ADDRESS to the end of the kernel's bootstrap data as MAP_NOFAULT.
Diffstat (limited to 'sys/vm/vm_kern.c')
-rw-r--r--sys/vm/vm_kern.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_kern.c b/sys/vm/vm_kern.c
index 162f2c7..6a78bb9 100644
--- a/sys/vm/vm_kern.c
+++ b/sys/vm/vm_kern.c
@@ -487,7 +487,8 @@ 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, 0);
+ VM_MIN_KERNEL_ADDRESS, start, VM_PROT_ALL, VM_PROT_ALL,
+ MAP_NOFAULT);
/* ... and ending with the completion of the above `insert' */
vm_map_unlock(m);
}
OpenPOWER on IntegriCloud