Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sgimips/sgimips KASSERT that MIPS_SR_KX is set when...



details:   https://anonhg.NetBSD.org/src/rev/343e6e3aefca
branches:  trunk
changeset: 348959:343e6e3aefca
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Nov 17 23:46:52 2016 +0000

description:
KASSERT that MIPS_SR_KX is set when entering interrupt handler in !o32

diffstat:

 sys/arch/sgimips/sgimips/cpu.c |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 73e4089da5cc -r 343e6e3aefca sys/arch/sgimips/sgimips/cpu.c
--- a/sys/arch/sgimips/sgimips/cpu.c    Thu Nov 17 23:15:38 2016 +0000
+++ b/sys/arch/sgimips/sgimips/cpu.c    Thu Nov 17 23:46:52 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpu.c,v 1.26 2011/02/20 07:59:51 matt Exp $    */
+/*     $NetBSD: cpu.c,v 1.27 2016/11/17 23:46:52 macallan Exp $        */
 
 /*
  * Copyright (c) 2000 Soren S. Jorvang
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.26 2011/02/20 07:59:51 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.27 2016/11/17 23:46:52 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -109,6 +109,11 @@
 
        curcpu()->ci_data.cpu_nintr++;
 
+#if !defined(__mips_o32)
+       KASSERTMSG(mips_cp0_status_read() & MIPS_SR_KX,
+                  "pc %"PRIxVADDR ", status %x\n", pc, status);
+#endif
+
        (void)(*platform.watchdog_reset)();
 
        while (ppl < (ipl = splintr(&pending))) {



Home | Main Index | Thread Index | Old Index