Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/mpc6xx Change a debugging message a bit.
details: https://anonhg.NetBSD.org/src/rev/ebf962f03a83
branches: trunk
changeset: 511569:ebf962f03a83
user: matt <matt%NetBSD.org@localhost>
date: Thu Jun 21 22:05:50 2001 +0000
description:
Change a debugging message a bit.
diffstat:
sys/arch/powerpc/mpc6xx/pmap.c | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
diffs (38 lines):
diff -r 591353edddd8 -r ebf962f03a83 sys/arch/powerpc/mpc6xx/pmap.c
--- a/sys/arch/powerpc/mpc6xx/pmap.c Thu Jun 21 21:53:44 2001 +0000
+++ b/sys/arch/powerpc/mpc6xx/pmap.c Thu Jun 21 22:05:50 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.14 2001/06/21 18:03:37 matt Exp $ */
+/* $NetBSD: pmap.c,v 1.15 2001/06/21 22:05:50 matt Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -1025,8 +1025,9 @@
LIST_FOREACH(pvo, &pmap_pvo_table[ptegidx], pvo_olink) {
#ifdef DIAGNOSTIC
if ((uintptr_t) pvo >= SEGMENT_LENGTH)
- panic("pmap_pvo_find_va: invalid pvo %p on list %#x",
- pvo, ptegidx);
+ panic("pmap_pvo_find_va: invalid pvo %p on "
+ "list %#x (%p)", pvo, ptegidx,
+ &pmap_pvo_table[ptegidx]);
#endif
if (pvo->pvo_pmap == pm && PVO_VADDR(pvo) == va) {
if (pteidx_p)
@@ -1499,6 +1500,16 @@
else
pte_lo |= PTE_BR;
+#if 0
+ if (pm == pmap_kernel()) {
+ if ((prot & (VM_PROT_READ|VM_PROT_WRITE)) == VM_PROT_READ)
+ printf("pmap_pvo_enter: Kernel RO va %#lx pa %#lx\n",
+ va, pa);
+ if ((prot & (VM_PROT_READ|VM_PROT_WRITE)) == VM_PROT_NONE)
+ printf("pmap_pvo_enter: Kernel N/A va %#lx pa %#lx\n",
+ va, pa);
+ }
+#endif
/*
* Record mapping for later back-translation and pte spilling.
* This will overwrite any existing mapping.
Home |
Main Index |
Thread Index |
Old Index