Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpcmips/vr Print bad address in interrupt handler.



details:   https://anonhg.NetBSD.org/src/rev/5c4c9f682a98
branches:  trunk
changeset: 525627:5c4c9f682a98
user:      takemura <takemura%NetBSD.org@localhost>
date:      Sun Apr 14 07:34:20 2002 +0000

description:
Print bad address in interrupt handler.

diffstat:

 sys/arch/hpcmips/vr/vrpciu.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r fdd606bfe479 -r 5c4c9f682a98 sys/arch/hpcmips/vr/vrpciu.c
--- a/sys/arch/hpcmips/vr/vrpciu.c      Sun Apr 14 07:16:28 2002 +0000
+++ b/sys/arch/hpcmips/vr/vrpciu.c      Sun Apr 14 07:34:20 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vrpciu.c,v 1.7 2002/02/24 09:16:07 takemura Exp $      */
+/*     $NetBSD: vrpciu.c,v 1.8 2002/04/14 07:34:20 takemura Exp $      */
 
 /*-
  * Copyright (c) 2001 Enami Tsugutomo.
@@ -348,10 +348,12 @@
 vrpciu_intr(void *arg)
 {
        struct vrpciu_softc *sc = (struct vrpciu_softc *)arg;
-       u_int32_t isr;
+       u_int32_t isr, baddr;
 
        isr = vrpciu_read(sc, VRPCIU_INTCNTSTAREG);
-       printf("%s: vrpciu_intr 0x%08x\n", sc->sc_dev.dv_xname, isr);
+       baddr = vrpciu_read(sc, VRPCIU_BUSERRADREG);
+       printf("%s: status=0x%08x  bad addr=0x%08x\n",
+           sc->sc_dev.dv_xname, isr, baddr);
        return ((isr & 0x0f) ? 1 : 0);
 }
 



Home | Main Index | Thread Index | Old Index