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 7058762c28
commit 352bf75f85

View File

@@ -336,6 +336,12 @@ bool irq5_handler(void *arg1, void *arg2)
pending_interrupts & FBEE_INTR_PCI_INTC ||
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");
FBEE_INTR_CLEAR = FBEE_INTR_PCI_INTA |
FBEE_INTR_PCI_INTB |