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:
Konstantin Belousov 2009-06-24 16:52:30 +00:00
parent e0d35fbe8e
commit 186cff43e3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194858

View file

@ -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");
}