Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc since SX can trigger NMIs dump the stat...



details:   https://anonhg.NetBSD.org/src/rev/ba065dcae602
branches:  trunk
changeset: 449253:ba065dcae602
user:      macallan <macallan%NetBSD.org@localhost>
date:      Fri Mar 01 02:33:55 2019 +0000

description:
since SX can trigger NMIs dump the status and error registers along with
the rest if sx is present.

diffstat:

 sys/arch/sparc/sparc/intr.c |  15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diffs (46 lines):

diff -r eef7019d0a2d -r ba065dcae602 sys/arch/sparc/sparc/intr.c
--- a/sys/arch/sparc/sparc/intr.c       Fri Mar 01 02:33:43 2019 +0000
+++ b/sys/arch/sparc/sparc/intr.c       Fri Mar 01 02:33:55 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: intr.c,v 1.120 2019/02/04 09:57:39 mrg Exp $ */
+/*     $NetBSD: intr.c,v 1.121 2019/03/01 02:33:55 macallan Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -41,10 +41,11 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.120 2019/02/04 09:57:39 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.121 2019/03/01 02:33:55 macallan Exp $");
 
 #include "opt_multiprocessor.h"
 #include "opt_sparc_arch.h"
+#include "sx.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -70,6 +71,11 @@
 #include <machine/db_machdep.h>
 #endif
 
+#if NSX > 0
+#include <sys/bus.h>
+#include <sparc/dev/sxvar.h>
+#endif
+
 #if defined(MULTIPROCESSOR)
 static int intr_biglock_wrapper(void *);
 
@@ -255,7 +261,10 @@
        si = *((uint32_t *)ICR_SI_PEND);
        snprintb(bits, sizeof(bits), SINTR_BITS, si);
        printf("cpu%d: NMI: system interrupts: %s\n", cpu_number(), bits);
-               
+
+#if NSX > 0
+       sx_dump();
+#endif
 
        if ((si & SINTR_M) != 0) {
                /* ECC memory error */



Home | Main Index | Thread Index | Old Index