Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/sparc XXX:
details: https://anonhg.NetBSD.org/src/rev/818794cca9a2
branches: trunk
changeset: 761252:818794cca9a2
user: mrg <mrg%NetBSD.org@localhost>
date: Sat Jan 22 10:37:22 2011 +0000
description:
XXX:
in strayintr() don't print about stray zs inters in MP case.
diffstat:
sys/arch/sparc/sparc/intr.c | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r 5ebf999e2f08 -r 818794cca9a2 sys/arch/sparc/sparc/intr.c
--- a/sys/arch/sparc/sparc/intr.c Sat Jan 22 09:40:50 2011 +0000
+++ b/sys/arch/sparc/sparc/intr.c Sat Jan 22 10:37:22 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intr.c,v 1.108 2010/01/05 21:38:50 macallan Exp $ */
+/* $NetBSD: intr.c,v 1.109 2011/01/22 10:37:22 mrg Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.108 2010/01/05 21:38:50 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.109 2011/01/22 10:37:22 mrg Exp $");
#include "opt_multiprocessor.h"
#include "opt_sparc_arch.h"
@@ -133,6 +133,19 @@
char bits[64];
int timesince;
+#if defined(MULTIPROCESSOR)
+ /*
+ * XXX
+ *
+ * Don't whine about zs interrupts on MP. We sometimes get
+ * stray interrupts when polled kernel output on cpu>0 eats
+ * the interrupt and cpu0 sees it.
+ */
+#define ZS_INTR_IPL 12
+ if (fp->ipl == ZS_INTR_IPL)
+ return;
+#endif
+
snprintb(bits, sizeof(bits), PSR_BITS, fp->psr);
printf("stray interrupt cpu%d ipl 0x%x pc=0x%x npc=0x%x psr=%s\n",
cpu_number(), fp->ipl, fp->pc, fp->npc, bits);
Home |
Main Index |
Thread Index |
Old Index