diff options
author | kib <kib@FreeBSD.org> | 2009-06-24 16:52:30 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2009-06-24 16:52:30 +0000 |
commit | 8680a0da13e7d0054f547e794e0db7ea71121a01 (patch) | |
tree | ed0fe9242c077e6aefdcf4e2703396c2454639c6 /sys/sparc64 | |
parent | 9ff8a9acf0f5e6bef7b29c320aa1ab8232cc35bd (diff) | |
download | FreeBSD-src-8680a0da13e7d0054f547e794e0db7ea71121a01.zip FreeBSD-src-8680a0da13e7d0054f547e794e0db7ea71121a01.tar.gz |
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
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/pmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sparc64/sparc64/pmap.c b/sys/sparc64/sparc64/pmap.c index 1e1de83..765d639 100644 --- a/sys/sparc64/sparc64/pmap.c +++ b/sys/sparc64/sparc64/pmap.c @@ -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"); } |