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 Add few a more PMAP_PVO_CHECKs in pt...



details:   https://anonhg.NetBSD.org/src/rev/bde7365d88da
branches:  trunk
changeset: 517016:bde7365d88da
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Nov 04 21:15:03 2001 +0000

description:
Add few a more PMAP_PVO_CHECKs in pte_spill; print pte addr of unmatched
pte in panicstr.

diffstat:

 sys/arch/powerpc/mpc6xx/pmap.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 035337aa845e -r bde7365d88da sys/arch/powerpc/mpc6xx/pmap.c
--- a/sys/arch/powerpc/mpc6xx/pmap.c    Sun Nov 04 20:55:25 2001 +0000
+++ b/sys/arch/powerpc/mpc6xx/pmap.c    Sun Nov 04 21:15:03 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.28 2001/10/18 01:03:44 matt Exp $   */
+/*     $NetBSD: pmap.c,v 1.29 2001/11/04 21:15:03 matt Exp $   */
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -665,6 +665,7 @@
                        if (i >= 0) {
                                PVO_PTEGIDX_SET(pvo, i);
                                pmap_pte_overflow--;
+                               PMAP_PVO_CHECK(pvo);    /* sanity check */
                                return 1;
                        }
                        source_pvo = pvo;
@@ -687,7 +688,7 @@
                return 0;
 
        if (victim_pvo == NULL)
-               panic("pmap_pte_spill: victim pte has no pvo entry!");
+               panic("pmap_pte_spill: victim pte (%p) has no pvo entry!", pt);
 
        /*
         * We are invalidating the TLB entry for the EA for the
@@ -703,6 +704,9 @@
        PVO_PTEGIDX_CLR(victim_pvo);
        PVO_PTEGIDX_SET(source_pvo, i);
        pmap_pte_replacements++;
+
+       PMAP_PVO_CHECK(victim_pvo);
+       PMAP_PVO_CHECK(source_pvo);
        return 1;
 }
 



Home | Main Index | Thread Index | Old Index