summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/powerpc/powermac/hrowpic.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/powerpc/powermac/hrowpic.c b/sys/powerpc/powermac/hrowpic.c
index 2ed0aa3..ce35d46 100644
--- a/sys/powerpc/powermac/hrowpic.c
+++ b/sys/powerpc/powermac/hrowpic.c
@@ -182,7 +182,13 @@ hrowpic_toggle_irq(struct hrowpic_softc *sc, int irq, int enable)
u_int roffset;
u_int rbit;
- KASSERT((irq > 0) && (irq < HROWPIC_IRQMAX), ("en irq out of range"));
+ KASSERT((irq > 0) && (irq <= HROWPIC_IRQMAX), ("en irq out of range"));
+
+ /*
+ * Humor the SMP layer if it wants to set up an IPI handler.
+ */
+ if (irq == HROWPIC_IRQMAX)
+ return;
/*
* Calculate prim/sec register bank for the IRQ, update soft copy,
OpenPOWER on IntegriCloud