Allow Heathrow-based machines to boot a kernel containing option SMP
without panicing.
This commit is contained in:
parent
faab8f4d7c
commit
ce2ebccca8
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user