summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-05-09 19:20:10 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-05-09 19:20:10 +0000
commit1fcf39ad0f962267592ca8bb9a113e089fc3a8d4 (patch)
tree57e0b0da70e5d0a4f011555c2ba8cccdae432f9c
parent16b4e7a6d0de31422f9d3501075b2ca24f7e86cc (diff)
Comment out ``generic'' interrupt routines, which are not used at the moment.
-rw-r--r--sys/arch/mips64/mips64/interrupt.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/sys/arch/mips64/mips64/interrupt.c b/sys/arch/mips64/mips64/interrupt.c
index 3dd6ecc4154..d7246e09c90 100644
--- a/sys/arch/mips64/mips64/interrupt.c
+++ b/sys/arch/mips64/mips64/interrupt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: interrupt.c,v 1.25 2007/05/07 18:42:13 kettenis Exp $ */
+/* $OpenBSD: interrupt.c,v 1.26 2007/05/09 19:20:09 miod Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -148,7 +148,7 @@ interrupt(struct trap_frame *trapframe)
/*
* Paranoic? Perhaps. But if we got here with the enable
* bit reset a mtc0 COP_0_STATUS_REG may have been interrupted.
- * If this was a disable and the pipleine had advanced long
+ * If this was a disable and the pipeline had advanced long
* enough... i don't know but better safe than sorry...
* The main effect is not the interrupts but the spl mechanism.
*/
@@ -183,12 +183,7 @@ interrupt(struct trap_frame *trapframe)
cause &= ~(*cpu_int_tab[i].int_hand)(active, trapframe);
}
}
-#if 0
-if ((pending & cause & ~(SOFT_INT_MASK_1|SOFT_INT_MASK_0)) != 0) {
-printf("Unhandled interrupt %x:%x\n", cause, pending);
-//Debugger();
-}
-#endif
+
/*
* Reenable all non served hardware levels.
*/
@@ -211,7 +206,7 @@ printf("Unhandled interrupt %x:%x\n", cause, pending);
#include <net/netisr_dispatch.h>
}
-#ifdef NOTYET
+#ifdef notyet
if ((ipending & SINT_TTYMASK) & ~xcpl) {
atomic_clearbits_int(&ipending, SINT_TTYMASK);
compoll(NULL);
@@ -287,6 +282,8 @@ struct intrhand *intrhand[INTMASKSIZE];
/*======================================================================*/
+#if 0
+
/*
* Generic interrupt handling code.
* ================================
@@ -519,6 +516,8 @@ generic_do_pending_int(int newcpl)
processing = 0;
}
+#endif
+
void
dummy_do_pending_int(int newcpl)
{
@@ -546,6 +545,8 @@ splinit()
#endif
}
+#if 0
+
/*
* Process interrupts. The parameter pending has non-masked interrupts.
*/
@@ -580,6 +581,8 @@ generic_iointr(intrmask_t pending, struct trap_frame *cf)
return caught;
}
+#endif
+
#ifndef INLINE_SPLRAISE
int
splraise(int newcpl)