From 07f71aab05740e826e1f6efd59833c6ae538c8e0 Mon Sep 17 00:00:00 2001 From: OBattler Date: Fri, 24 May 2024 10:37:59 +0200 Subject: [PATCH] PCI: Fix a bug in the internal IRQ mechanism. --- src/pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pci.c b/src/pci.c index 266be4396..6fb84010d 100644 --- a/src/pci.c +++ b/src/pci.c @@ -209,7 +209,7 @@ pci_irq(uint8_t slot, uint8_t pci_int, int level, int set, uint8_t *irq_state) if (!last_pci_card || (pci_flags & FLAG_NO_IRQ_STEERING)) return; - irq_routing = (pci_int_index - PCI_INTA) & PCI_IRQ_MAX; + irq_routing = (pci_int_index - PCI_IIRQ_BASE) & PCI_IRQ_MAX; irq_line = pci_irqs[irq_routing];