From 9d97e3c7bae50950056671ff258f5975bd708bd8 Mon Sep 17 00:00:00 2001 From: starfrost013 Date: Tue, 31 Dec 2024 16:50:47 +0000 Subject: [PATCH] More anti-stupidity measures. CLEAR interrupts...WHEN WE CLEAR THEM...AND DON'T SET SPURIOUS INTERRUPTS! --- src/video/nv/nv3/subsystems/nv3_pmc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/nv/nv3/subsystems/nv3_pmc.c b/src/video/nv/nv3/subsystems/nv3_pmc.c index 1cc28140c..d32738a5e 100644 --- a/src/video/nv/nv3/subsystems/nv3_pmc.c +++ b/src/video/nv/nv3/subsystems/nv3_pmc.c @@ -61,7 +61,7 @@ nv_register_t pmc_registers[] = { uint32_t nv3_pmc_clear_interrupts() { nv_log("NV3: Clearing IRQs\n"); - pci_set_irq(nv3->nvbase.pci_slot, PCI_INTA, &nv3->nvbase.pci_irq_state); + pci_clear_irq(nv3->nvbase.pci_slot, PCI_INTA, &nv3->nvbase.pci_irq_state); } // Handle hardware interrupts