summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/powermac
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2009-10-24 18:31:22 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2009-10-24 18:31:22 +0000
commitce2ebccca84ef8b4473c3f31b6474e515ef200c2 (patch)
tree8e06c904a8e7485822909be8d3d8911b05b2bde5 /sys/powerpc/powermac
parentfaab8f4d7c573daa7c04657aef4ce831c8159e59 (diff)
downloadFreeBSD-src-ce2ebccca84ef8b4473c3f31b6474e515ef200c2.zip
FreeBSD-src-ce2ebccca84ef8b4473c3f31b6474e515ef200c2.tar.gz
Allow Heathrow-based machines to boot a kernel containing option SMP
without panicing.
Diffstat (limited to 'sys/powerpc/powermac')
-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