Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 make some DEBUG code in pmap_clear_...
details: https://anonhg.NetBSD.org/src/rev/b2612e90c7ae
branches: trunk
changeset: 337479:b2612e90c7ae
user: mrg <mrg%NetBSD.org@localhost>
date: Thu Apr 16 08:58:44 2015 +0000
description:
make some DEBUG code in pmap_clear_reference() UP-only
diffstat:
sys/arch/sparc64/sparc64/pmap.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (42 lines):
diff -r 74cba9669571 -r b2612e90c7ae sys/arch/sparc64/sparc64/pmap.c
--- a/sys/arch/sparc64/sparc64/pmap.c Thu Apr 16 08:54:15 2015 +0000
+++ b/sys/arch/sparc64/sparc64/pmap.c Thu Apr 16 08:58:44 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.293 2015/04/05 20:26:47 palle Exp $ */
+/* $NetBSD: pmap.c,v 1.294 2015/04/16 08:58:44 mrg Exp $ */
/*
*
* Copyright (C) 1996-1999 Eduardo Horvath.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.293 2015/04/05 20:26:47 palle Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.294 2015/04/16 08:58:44 mrg Exp $");
#undef NO_VCACHE /* Don't forget the locked TLB in dostart */
#define HWREF
@@ -2634,12 +2634,12 @@
pv_entry_t pv;
int rv;
int changed = 0;
-#ifdef DEBUG
+#if defined(DEBUG) && !defined(MULTIPROCESSOR)
int referenced = 0;
#endif
mutex_enter(&pmap_lock);
-#ifdef DEBUG
+#if defined(DEBUG) && !defined(MULTIPROCESSOR)
DPRINTF(PDB_CHANGEPROT|PDB_REF, ("pmap_clear_reference(%p)\n", pg));
referenced = pmap_is_referenced_locked(pg);
#endif
@@ -2695,7 +2695,7 @@
}
dcache_flush_page_all(VM_PAGE_TO_PHYS(pg));
pv_check();
-#ifdef DEBUG
+#if defined(DEBUG) && !defined(MULTIPROCESSOR)
if (pmap_is_referenced_locked(pg)) {
pv = &md->mdpg_pvh;
printf("pmap_clear_reference(): %p still referenced "
Home |
Main Index |
Thread Index |
Old Index