summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-09-21 01:35:30 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-09-21 01:35:30 +0000
commit5dc0599022dccd6e453ce0ac0890eaccd5d5616e (patch)
treeb37f316a21054064cdd8a03002eda2b1643cbdef
parent97d9a7d44020818b685cc85fc9d350ee80a24f2a (diff)
Add missing #ifdef DEBUG statements so we can build a kernel with
DIAGNOSTIC but without DEBUG.
-rw-r--r--sys/arch/pmax/pmax/pmap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arch/pmax/pmax/pmap.c b/sys/arch/pmax/pmax/pmap.c
index 5bcb7e0882f..2827030e9b5 100644
--- a/sys/arch/pmax/pmax/pmap.c
+++ b/sys/arch/pmax/pmax/pmap.c
@@ -832,11 +832,15 @@ pmap_enter(pmap, va, pa, prot, wired)
if (!pmap)
panic("pmap_enter: pmap");
if (!pmap->pm_segtab) {
+#ifdef DEBUG
enter_stats.kernel++;
+#endif
if (va < VM_MIN_KERNEL_ADDRESS || va >= virtual_end)
panic("pmap_enter: kva");
} else {
+#ifdef DEBUG
enter_stats.user++;
+#endif
if (va >= VM_MAXUSER_ADDRESS)
panic("pmap_enter: uva");
}