From 6c123e0544231110b8f33055409d26d0d2566347 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Tue, 4 Jan 2005 18:38:34 +0000 Subject: Better check for UPT filling; saves one more page for userland on most hp300... --- sys/arch/m68k/m68k/pmap_bootstrap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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; -- cgit v1.2.3