diff options
author | alc <alc@FreeBSD.org> | 2008-06-21 21:02:13 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2008-06-21 21:02:13 +0000 |
commit | bec9e612d27d8768c6987d54d2a9500a834f4416 (patch) | |
tree | 4f535a9d439d83bd732296b302b199dfb88e5ae0 /sys/vm | |
parent | dd48ea213d7c044105fd8a78967150aeaa6dbf08 (diff) | |
download | FreeBSD-src-bec9e612d27d8768c6987d54d2a9500a834f4416.zip FreeBSD-src-bec9e612d27d8768c6987d54d2a9500a834f4416.tar.gz |
KERNBASE is not necessarily an address within the kernel map, e.g.,
PowerPC/AIM. Consequently, it should not be used to determine the maximum
number of kernel map entries. Intead, use VM_MIN_KERNEL_ADDRESS, which marks
the start of the kernel map on all architectures.
Tested by: marcel@ (PowerPC/AIM)
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index 8873b98..a1f0ef3 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -294,7 +294,7 @@ void vm_init2(void) { uma_zone_set_obj(kmapentzone, &kmapentobj, lmin(cnt.v_page_count, - (VM_MAX_KERNEL_ADDRESS - KERNBASE) / PAGE_SIZE) / 8 + + (VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS) / PAGE_SIZE) / 8 + maxproc * 2 + maxfiles); vmspace_zone = uma_zcreate("VMSPACE", sizeof(struct vmspace), NULL, #ifdef INVARIANTS |