fix to only reprogram the interrupt controller if neccessary

This commit is contained in:
Markus Fröschle
2015-10-11 18:27:41 +00:00
parent 31e49930b5
commit 6d7d81090c

View File

@@ -336,6 +336,12 @@ bool irq5_handler(void *arg1, void *arg2)
pending_interrupts & FBEE_INTR_PCI_INTC || pending_interrupts & FBEE_INTR_PCI_INTC ||
pending_interrupts & FBEE_INTR_PCI_INTD) pending_interrupts & FBEE_INTR_PCI_INTD)
{ {
int handle;
if ((handle = pci_get_interrupt_cause() != -1))
{
pci_call_interrupt_chain(handle, 0L);
}
dbg("PCI interrupt IRQ5\r\n"); dbg("PCI interrupt IRQ5\r\n");
FBEE_INTR_CLEAR = FBEE_INTR_PCI_INTA | FBEE_INTR_CLEAR = FBEE_INTR_PCI_INTA |
FBEE_INTR_PCI_INTB | FBEE_INTR_PCI_INTB |