diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/alpha/alpha/pmap.c | 9 |
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; |