Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/mips Print out the address in the ktlbmod panic.



details:   https://anonhg.NetBSD.org/src/rev/ef10a40fdbea
branches:  trunk
changeset: 771529:ef10a40fdbea
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Nov 24 04:17:46 2011 +0000

description:
Print out the address in the ktlbmod panic.

diffstat:

 sys/arch/mips/mips/trap.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r bb9fbf042365 -r ef10a40fdbea sys/arch/mips/mips/trap.c
--- a/sys/arch/mips/mips/trap.c Thu Nov 24 04:17:11 2011 +0000
+++ b/sys/arch/mips/mips/trap.c Thu Nov 24 04:17:46 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.233 2011/08/18 21:04:23 matt Exp $  */
+/*     $NetBSD: trap.c,v 1.234 2011/11/24 04:17:46 matt Exp $  */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.233 2011/08/18 21:04:23 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.234 2011/11/24 04:17:46 matt Exp $");
 
 #include "opt_cputype.h"       /* which mips CPU levels do we support? */
 #include "opt_ddb.h"
@@ -258,7 +258,8 @@
                        pte = kvtopte(vaddr);
                        pt_entry = pte->pt_entry;
                        if (!mips_pg_v(pt_entry)) {
-                               panic("ktlbmod: invalid pte");
+                               panic("ktlbmod: %#"PRIxVADDR": invalid pte",
+                                   vaddr);
                        }
                        if (pt_entry & mips_pg_ro_bit()) {
                                /* write to read only page in the kernel */



Home | Main Index | Thread Index | Old Index