Unbreak sparc64 after the swap accounting changes: mark kernel_map
entries allocated for translations in pmap_init() as MAP_NOFAULT. This prevents vm_map_insert from trying to account the entries for swap usage, that is both wrong and too early to work. While there, change FALSE to VMFS_NO_SPACE. Reported and tested by: Florian Smeets <flo at kasimir com> Reviewed by: marius
This commit is contained in:
parent
e0d35fbe8e
commit
186cff43e3
@ -629,8 +629,8 @@ pmap_init(void)
|
||||
continue;
|
||||
if (addr < VM_MIN_PROM_ADDRESS || addr > VM_MAX_PROM_ADDRESS)
|
||||
continue;
|
||||
result = vm_map_find(kernel_map, NULL, 0, &addr, size, FALSE,
|
||||
VM_PROT_ALL, VM_PROT_ALL, 0);
|
||||
result = vm_map_find(kernel_map, NULL, 0, &addr, size,
|
||||
VMFS_NO_SPACE, VM_PROT_ALL, VM_PROT_ALL, MAP_NOFAULT);
|
||||
if (result != KERN_SUCCESS || addr != translations[i].om_start)
|
||||
panic("pmap_init: vm_map_find");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user