diff options
author | nwhitehorn <nwhitehorn@FreeBSD.org> | 2009-10-24 18:31:22 +0000 |
---|---|---|
committer | nwhitehorn <nwhitehorn@FreeBSD.org> | 2009-10-24 18:31:22 +0000 |
commit | ce2ebccca84ef8b4473c3f31b6474e515ef200c2 (patch) | |
tree | 8e06c904a8e7485822909be8d3d8911b05b2bde5 /sys/powerpc/powermac/hrowpic.c | |
parent | faab8f4d7c573daa7c04657aef4ce831c8159e59 (diff) | |
download | FreeBSD-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/hrowpic.c')
-rw-r--r-- | sys/powerpc/powermac/hrowpic.c | 8 |
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, |