Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbmips/evbmips put #ifdef MIPS3_ENABLE_CLOCK_INTR ...



details:   https://anonhg.NetBSD.org/src/rev/6b505b619f24
branches:  trunk
changeset: 335116:6b505b619f24
user:      macallan <macallan%NetBSD.org@localhost>
date:      Fri Dec 26 18:08:52 2014 +0000

description:
put #ifdef MIPS3_ENABLE_CLOCK_INTR around special handling of INT5

diffstat:

 sys/arch/evbmips/evbmips/interrupt.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r a79b6c6a18fa -r 6b505b619f24 sys/arch/evbmips/evbmips/interrupt.c
--- a/sys/arch/evbmips/evbmips/interrupt.c      Fri Dec 26 18:06:52 2014 +0000
+++ b/sys/arch/evbmips/evbmips/interrupt.c      Fri Dec 26 18:08:52 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: interrupt.c,v 1.20 2014/11/22 15:17:02 macallan Exp $  */
+/*     $NetBSD: interrupt.c,v 1.21 2014/12/26 18:08:52 macallan Exp $  */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: interrupt.c,v 1.20 2014/11/22 15:17:02 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: interrupt.c,v 1.21 2014/12/26 18:08:52 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -75,16 +75,16 @@
                cf.sr = status;
                cf.intr = (ci->ci_idepth > 1);
 
+#ifdef MIPS3_ENABLE_CLOCK_INTR
                if (pending & MIPS_INT_MASK_5) {
                        KASSERTMSG(ipl == IPL_SCHED,
                            "%s: ipl (%d) != IPL_SCHED (%d)",
                             __func__, ipl, IPL_SCHED);
-#ifdef MIPS3_ENABLE_CLOCK_INTR
                        /* call the common MIPS3 clock interrupt handler */ 
                        mips3_clockintr(&cf);
-#endif
                        pending ^= MIPS_INT_MASK_5;
                }
+#endif
 
                if (pending != 0) {
                        /* Process I/O and error interrupts. */



Home | Main Index | Thread Index | Old Index