Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/alpha enable debug code in pmap_emulate_refer...
details: https://anonhg.NetBSD.org/src/rev/f8ebedecd0de
branches: trunk
changeset: 572212:f8ebedecd0de
user: yamt <yamt%NetBSD.org@localhost>
date: Sat Dec 25 06:35:30 2004 +0000
description:
enable debug code in pmap_emulate_reference. ok'ed by Jason Thorpe.
diffstat:
sys/arch/alpha/alpha/pmap.c | 11 ++---------
1 files changed, 2 insertions(+), 9 deletions(-)
diffs (39 lines):
diff -r 5db7123b71b8 -r f8ebedecd0de sys/arch/alpha/alpha/pmap.c
--- a/sys/arch/alpha/alpha/pmap.c Fri Dec 24 18:33:06 2004 +0000
+++ b/sys/arch/alpha/alpha/pmap.c Sat Dec 25 06:35:30 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.207 2004/01/13 18:50:40 nathanw Exp $ */
+/* $NetBSD: pmap.c,v 1.208 2004/12/25 06:35:30 yamt Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -145,7 +145,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.207 2004/01/13 18:50:40 nathanw Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.208 2004/12/25 06:35:30 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -2771,12 +2771,6 @@
#ifdef DEBUG /* These checks are more expensive */
if (!pmap_pte_v(pte))
panic("pmap_emulate_reference: invalid pte");
-#if 0
- /*
- * Can't do these, because cpu_fork and cpu_swapin call
- * pmap_emulate_reference(), and the bits aren't guaranteed,
- * for them...
- */
if (type == ALPHA_MMCSR_FOW) {
if (!(*pte & (user ? PG_UWE : PG_UWE | PG_KWE)))
panic("pmap_emulate_reference: write but unwritable");
@@ -2788,7 +2782,6 @@
if (!(*pte & (PG_FOR | PG_FOE)))
panic("pmap_emulate_reference: !write but not FOR|FOE");
}
-#endif
/* Other diagnostics? */
#endif
pa = pmap_pte_pa(pte);
Home |
Main Index |
Thread Index |
Old Index