Allow Heathrow-based machines to boot a kernel containing option SMP

without panicing.
This commit is contained in:
nwhitehorn 2009-10-24 18:31:22 +00:00
parent faab8f4d7c
commit ce2ebccca8

View File

@ -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,