summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");
}