From 18f8e19f5825e408982bcab95015cc739a909a3c Mon Sep 17 00:00:00 2001 From: mrg Date: Fri, 13 Apr 2012 06:26:04 +0000 Subject: [PATCH] don't bother whining about bogusintr on zs. --- sys/arch/sparc/sparc/intr.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sys/arch/sparc/sparc/intr.c b/sys/arch/sparc/sparc/intr.c index dd98be1406f8..28858e15c5e1 100644 --- a/sys/arch/sparc/sparc/intr.c +++ b/sys/arch/sparc/sparc/intr.c @@ -1,4 +1,4 @@ -/* $NetBSD: intr.c,v 1.115 2011/05/23 18:40:30 rmind Exp $ */ +/* $NetBSD: intr.c,v 1.116 2012/04/13 06:26:04 mrg Exp $ */ /* * Copyright (c) 1992, 1993 @@ -41,7 +41,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.115 2011/05/23 18:40:30 rmind Exp $"); +__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.116 2012/04/13 06:26:04 mrg Exp $"); #include "opt_multiprocessor.h" #include "opt_sparc_arch.h" @@ -131,6 +131,14 @@ bogusintr(struct clockframe *fp) { char bits[64]; +#if defined(MULTIPROCESSOR) + /* + * XXX as above. + */ + if (fp->ipl == ZS_INTR_IPL) + return; +#endif + snprintb(bits, sizeof(bits), PSR_BITS, fp->psr); printf("cpu%d: bogus interrupt ipl 0x%x pc=0x%x npc=0x%x psr=%s\n", cpu_number(), fp->ipl, fp->pc, fp->npc, bits);