PCI check for MSIs and enable if possible
This commit is contained in:
@@ -123,8 +123,13 @@ bool pci_ide_init (struct proc* proc, struct reschedule_ctx* rctx, struct pci_in
|
||||
irqs_support = false;
|
||||
} else {
|
||||
irqs_support = true;
|
||||
ioapic_route_irq (IDE_DRIVE_PRIM, 14, 0, thiscpu->lapic_id);
|
||||
ioapic_route_irq (IDE_DRIVE_SCND, 15, 0, thiscpu->lapic_id);
|
||||
|
||||
if (!pci_msi_init (pci_info.bus, pci_info.slot, pci_info.func, IDE_DRIVE_PRIM,
|
||||
thiscpu->lapic_id)) {
|
||||
ioapic_route_irq (IDE_DRIVE_PRIM, 14, 0, thiscpu->lapic_id);
|
||||
ioapic_route_irq (IDE_DRIVE_SCND, 15, 0, thiscpu->lapic_id);
|
||||
DEBUG ("Fallback to IOAPIC interrupt routing\n");
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG ("pcmd=%x, pctrl=%x\n", pcmd, pctrl);
|
||||
|
||||
Reference in New Issue
Block a user