Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jan 2008 23:12:36 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 134257 for review
Message-ID:  <200801272312.m0RNCalE061792@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=134257

Change 134257 by imp@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;
 		}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801272312.m0RNCalE061792>