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 If mipsNN and kernel has DDB, trap on bog...



details:   https://anonhg.NetBSD.org/src/rev/bdfd02755991
branches:  trunk
changeset: 808874:bdfd02755991
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Jun 06 04:40:19 2015 +0000

description:
If mipsNN and kernel has DDB, trap on bogus IPL values passed to splraise.

diffstat:

 sys/arch/mips/mips/spl.S |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 7fe5e7d19a64 -r bdfd02755991 sys/arch/mips/mips/spl.S
--- a/sys/arch/mips/mips/spl.S  Sat Jun 06 04:39:12 2015 +0000
+++ b/sys/arch/mips/mips/spl.S  Sat Jun 06 04:40:19 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spl.S,v 1.7 2015/06/05 19:58:01 matt Exp $     */
+/*     $NetBSD: spl.S,v 1.8 2015/06/06 04:40:19 matt Exp $     */
 
 /*-
  * Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
@@ -31,6 +31,7 @@
 
 #include "opt_multiprocessor.h"        /* MP kernel? */
 #include "opt_cputype.h"       /* which mips CPU levels do we support? */
+#include "opt_ddb.h"
 
 #include <sys/cdefs.h>
 
@@ -38,7 +39,7 @@
 #include <mips/asm.h>
 #include <mips/cpuregs.h>
 
-RCSID("$NetBSD: spl.S,v 1.7 2015/06/05 19:58:01 matt Exp $")
+RCSID("$NetBSD: spl.S,v 1.8 2015/06/06 04:40:19 matt Exp $")
 
 #include "assym.h"
 
@@ -217,6 +218,9 @@
 END(_splsw_clrsoftintr)
 
 STATIC_LEAF(_splsw_splraise)
+#if defined(DDB) && __mips >= 32
+       tgeiu   a0, IPL_HIGH+1
+#endif
        move    a1, a0
        PTR_LA  v1, _C_LABEL(ipl_sr_map)
        sll     a2, a0, INT_SCALESHIFT



Home | Main Index | Thread Index | Old Index