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.
This commit is contained in:
Alan Cox 2007-01-07 07:32:04 +00:00
parent c953d93930
commit e6eaadba43

View File

@ -487,7 +487,8 @@ kmem_init(start, end)
/* N.B.: cannot use kgdb to debug, starting with this assignment ... */ /* N.B.: cannot use kgdb to debug, starting with this assignment ... */
kernel_map = m; kernel_map = m;
(void) vm_map_insert(m, NULL, (vm_ooffset_t) 0, (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' */ /* ... and ending with the completion of the above `insert' */
vm_map_unlock(m); vm_map_unlock(m);
} }