diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-01-04 18:38:34 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-01-04 18:38:34 +0000 |
commit | 6c123e0544231110b8f33055409d26d0d2566347 (patch) | |
tree | 6d45873aa61df2f83d733fbc49c332b471f2cfa0 | |
parent | efb8108c29d5fb4e1aefad1976961c0e22786609 (diff) |
Better check for UPT filling; saves one more page for userland on most hp300...
-rw-r--r-- | sys/arch/m68k/m68k/pmap_bootstrap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/m68k/m68k/pmap_bootstrap.c b/sys/arch/m68k/m68k/pmap_bootstrap.c index 4cbdb383777..e6175b332ee 100644 --- a/sys/arch/m68k/m68k/pmap_bootstrap.c +++ b/sys/arch/m68k/m68k/pmap_bootstrap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap_bootstrap.c,v 1.9 2004/12/30 21:22:20 miod Exp $ */ +/* $OpenBSD: pmap_bootstrap.c,v 1.10 2005/01/04 18:38:33 miod Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -164,7 +164,7 @@ pmap_bootstrap(nextpa, firstpa) nextpa += kstsize * NBPG; kptpa = nextpa; - nptpages = RELOC(Sysptsize, int) + + nptpages = (MACHINE_IIOMAPSIZE + MACHINE_EIOMAPSIZE + NPTEPG - 1) / NPTEPG; iiopa = nextpa + RELOC(Sysptsize, int) * NBPG; |