Temporary hack to allow ACPI SCI to share an IRQ with PCI devices

This commit is contained in:
RichardG867
2020-10-22 22:45:27 -03:00
parent 86feb28064
commit 9d541c267d
2 changed files with 45 additions and 31 deletions

View File

@@ -70,12 +70,12 @@ acpi_update_irq(void *priv)
if (dev->irq_mode == 1)
pci_set_irq(dev->slot, dev->irq_pin);
else
picintlevel(1 << dev->irq_line);
pci_set_mirq(0xf0 | dev->irq_line, 1);
} else {
if (dev->irq_mode == 1)
pci_clear_irq(dev->slot, dev->irq_pin);
else
picintc(1 << dev->irq_line);
pci_clear_mirq(0xf0 | dev->irq_line, 1);
}
}