Add a missing conditional. We should not bind the PIC interrupt unless

the interrupt's PIC (a) exists and (b) is the root PIC.

Reported by:	Andreas Tobler
This commit is contained in:
nwhitehorn 2010-07-03 20:11:04 +00:00
parent 8c92592cd0
commit c42c25e677

View File

@ -415,7 +415,8 @@ powerpc_bind_intr(u_int irq, u_char cpu)
else
i->cpu = 1 << cpu;
PIC_BIND(i->pic, i->intline, i->cpu);
if (!cold && i->pic != NULL && i->pic == root_pic)
PIC_BIND(i->pic, i->intline, i->cpu);
return (intr_event_bind(i->event, cpu));
}