XXX:
in strayintr() don't print about stray zs inters in MP case.
This commit is contained in:
parent
e187497d0d
commit
9f506e4ca6
|
@ -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
|
* Copyright (c) 1992, 1993
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#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_multiprocessor.h"
|
||||||
#include "opt_sparc_arch.h"
|
#include "opt_sparc_arch.h"
|
||||||
|
@ -133,6 +133,19 @@ strayintr(struct clockframe *fp)
|
||||||
char bits[64];
|
char bits[64];
|
||||||
int timesince;
|
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);
|
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",
|
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);
|
cpu_number(), fp->ipl, fp->pc, fp->npc, bits);
|
||||||
|
|
Loading…
Reference in New Issue