pci: re-add isa bridge setup
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 9 Aug 2011 15:22:42 +0000 (17:22 +0200)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 10 Aug 2011 02:54:35 +0000 (22:54 -0400)
The switch to the two-pass pci initialization dropped the isa bridge
initialization by accident.  That broke interrupts on FreeBSD 4.4 and
maybe also other older guests which don't use ACPI for IRQ routing
setup.  Add the bits back in.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Tested-by: Bjørn Mork <bjorn@mork.no>
src/pciinit.c

index 6331fdfe9f59bef68e44057010d8f782aa5be4da..597c8ea78173000435df7afd12754ce27e02b1f9 100644 (file)
@@ -607,6 +607,11 @@ pci_setup(void)
 
     pci_bios_init_device_in_bus(0 /* host bus */);
 
+    struct pci_device *pci;
+    foreachpci(pci) {
+        pci_init_device(pci_isa_bridge_tbl, pci, NULL);
+    }
+
     free(busses);
     busses_count = 0;
 }