summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-12-05 16:30:48 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-12-05 16:30:48 +0000
commit42e521ae63ca1f030cb9eac1f17700051f006269 (patch)
tree9dd384df6c820f200c985d6178c4408c8b35c780 /sys/arch
parentaf363f6bb9003c15128788d6f4e784ecd61ece7b (diff)
calculate and use nkmempages, not NKMEMCLUSTERS.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/alpha/alpha/pmap.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/arch/alpha/alpha/pmap.c b/sys/arch/alpha/alpha/pmap.c
index ed84ddf001d..7c98e6ca826 100644
--- a/sys/arch/alpha/alpha/pmap.c
+++ b/sys/arch/alpha/alpha/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.29 2001/11/28 16:24:26 art Exp $ */
+/* $OpenBSD: pmap.c,v 1.30 2001/12/05 16:30:47 art Exp $ */
/* $NetBSD: pmap.c,v 1.154 2000/12/07 22:18:55 thorpej Exp $ */
/*-
@@ -802,11 +802,16 @@ pmap_bootstrap(paddr_t ptaddr, u_int maxasn, u_long ncpuids)
#endif
/*
+ * Compute the number of pages kmem_map will have.
+ */
+ kmeminit_nkmempages();
+
+ /*
* Figure out how many PTE's are necessary to map the kernel.
*/
lev3mapsize = (VM_PHYS_SIZE + (ubc_nwins << ubc_winshift) +
nbuf * MAXBSIZE + 16 * NCARGS + PAGER_MAP_SIZE) / NBPG +
- (maxproc * UPAGES) + NKMEMCLUSTERS;
+ (maxproc * UPAGES) + nkmempages;
#ifdef SYSVSHM
lev3mapsize += shminfo.shmall;