PERFORCE change 134257 for review
Warner Losh
imp at FreeBSD.org
Sun Jan 27 15:12:37 PST 2008
http://perforce.freebsd.org/chv.cgi?CH=134257
Change 134257 by imp at imp_paco-paco on 2008/01/27 23:12:21
ugly hack
Affected files ...
.. //depot/projects/mips2-jnpr/src/sys/mips/mips/intr_machdep.c#3 edit
Differences ...
==== //depot/projects/mips2-jnpr/src/sys/mips/mips/intr_machdep.c#3 (text+ko) ====
@@ -34,6 +34,7 @@
#include <sys/bus.h>
#include <sys/interrupt.h>
+#include <machine/clock.h>
#include <machine/cpu.h>
#include <machine/cpufunc.h>
#include <machine/cpuinfo.h>
@@ -134,6 +135,13 @@
cause &= ~MIPS_INT_MASK;
mips_wr_cause(cause);
+#if 0
+ if (intr & CR_INT_CLOCK) {
+ clockintr(intr, tf);
+ intr &= ~CR_INT_CLOCK;
+ }
+#endif
+
while ((i = fls(intr)) != 0) {
intr &= ~(1 << (i - 1));
switch (i) {
@@ -154,8 +162,11 @@
if (!event || TAILQ_EMPTY(&event->ie_handlers))
{
- printf("stray %s interrupt %d\n",
- hard ? "hard" : "soft", i);
+ if (i == 5)
+ clockintr(intr, tf);
+ else
+ printf("stray %s interrupt %d\n",
+ hard ? "hard" : "soft", i);
continue;
}
More information about the p4-projects
mailing list