summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-06-02 10:44:22 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-06-02 10:44:22 +0000
commit20b233c3f5ab2bcd0dad83ecd7528f5436bc3618 (patch)
tree8f9caea13a10e5d35fff92210ccaa34918a37bbf /sys
parentf7d56021881d27ab5b1b4d5aeef73097bc2c9888 (diff)
Fix back my fixes lost in last sync.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/i386/pmap.c10
-rw-r--r--sys/arch/i386/i386/pmap.old.c10
2 files changed, 14 insertions, 6 deletions
diff --git a/sys/arch/i386/i386/pmap.c b/sys/arch/i386/i386/pmap.c
index d1a6b0f5743..315eb9da9f1 100644
--- a/sys/arch/i386/i386/pmap.c
+++ b/sys/arch/i386/i386/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.10 1996/05/30 09:30:08 deraadt Exp $ */
+/* $OpenBSD: pmap.c,v 1.11 1996/06/02 10:44:21 mickey Exp $ */
/* $NetBSD: pmap.c,v 1.36 1996/05/03 19:42:22 christos Exp $ */
/*
@@ -1379,7 +1379,8 @@ pmap_collect(pmap)
pmap_t pmap;
{
#ifdef DEBUG
- printf("pmap_collect(%x) ", pmap);
+ if (pmapdebug & PDB_FOLLOW)
+ printf("pmap_collect(%x) ", pmap);
#endif
if (pmap != pmap_kernel())
@@ -1387,7 +1388,7 @@ pmap_collect(pmap)
}
-#if 0
+#if DEBUG
void
pmap_dump_pvlist(phys, m)
vm_offset_t phys;
@@ -1395,6 +1396,9 @@ pmap_dump_pvlist(phys, m)
{
register struct pv_entry *pv;
+ if (!(pmapdebug & PDB_PARANOIA))
+ return;
+
if (!pmap_initialized)
return;
printf("%s %08x:", m, phys);
diff --git a/sys/arch/i386/i386/pmap.old.c b/sys/arch/i386/i386/pmap.old.c
index a4fe896f23d..bbe4fa12c8e 100644
--- a/sys/arch/i386/i386/pmap.old.c
+++ b/sys/arch/i386/i386/pmap.old.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.old.c,v 1.10 1996/05/30 09:30:08 deraadt Exp $ */
+/* $OpenBSD: pmap.old.c,v 1.11 1996/06/02 10:44:21 mickey Exp $ */
/* $NetBSD: pmap.c,v 1.36 1996/05/03 19:42:22 christos Exp $ */
/*
@@ -1379,7 +1379,8 @@ pmap_collect(pmap)
pmap_t pmap;
{
#ifdef DEBUG
- printf("pmap_collect(%x) ", pmap);
+ if (pmapdebug & PDB_FOLLOW)
+ printf("pmap_collect(%x) ", pmap);
#endif
if (pmap != pmap_kernel())
@@ -1387,7 +1388,7 @@ pmap_collect(pmap)
}
-#if 0
+#if DEBUG
void
pmap_dump_pvlist(phys, m)
vm_offset_t phys;
@@ -1395,6 +1396,9 @@ pmap_dump_pvlist(phys, m)
{
register struct pv_entry *pv;
+ if (!(pmapdebug & PDB_PARANOIA))
+ return;
+
if (!pmap_initialized)
return;
printf("%s %08x:", m, phys);