summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-11-09 15:31:12 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-11-09 15:31:12 +0000
commit9e06d79c3675e4b46fe50497145a9c50958b916a (patch)
tree55eed1c9bc94e393c185ed9049ecdb00446b9214
parentecaa80ce9f29a65a9be1c62b99a0c9c9513d901e (diff)
When calculating the initial size of the lev3map, use PAGER_MAP_SIZE, not a magic constant.
-rw-r--r--sys/arch/alpha/alpha/pmap.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/arch/alpha/alpha/pmap.c b/sys/arch/alpha/alpha/pmap.c
index 75cb7f6b902..9ff390da8c2 100644
--- a/sys/arch/alpha/alpha/pmap.c
+++ b/sys/arch/alpha/alpha/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.22 2001/11/09 02:57:03 art Exp $ */
+/* $OpenBSD: pmap.c,v 1.23 2001/11/09 15:31:11 art Exp $ */
/* $NetBSD: pmap.c,v 1.154 2000/12/07 22:18:55 thorpej Exp $ */
/*-
@@ -803,12 +803,9 @@ pmap_bootstrap(paddr_t ptaddr, u_int maxasn, u_long ncpuids)
/*
* Figure out how many PTE's are necessary to map the kernel.
- * The '512' comes from PAGER_MAP_SIZE in vm_pager_init().
- * This should be kept in sync.
- * We also reserve space for kmem_alloc_pageable() for vm_fork().
*/
lev3mapsize = (VM_PHYS_SIZE +
- nbuf * MAXBSIZE + 16 * NCARGS) / NBPG + 512 +
+ nbuf * MAXBSIZE + + PAGER_MAP_SIZE + 16 * NCARGS) / NBPG +
(maxproc * UPAGES) + NKMEMCLUSTERS;
#ifdef SYSVSHM