[SeaBIOS] [PATCH] pci: re-add isa bridge setup

Gerd Hoffmann kraxel at redhat.com
Tue Aug 9 17:22:42 CEST 2011


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.

Cc: Bjørn Mork <bjorn at mork.no>
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
 src/pciinit.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/pciinit.c b/src/pciinit.c
index 6331fdf..597c8ea 100644
--- a/src/pciinit.c
+++ b/src/pciinit.c
@@ -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;
 }
-- 
1.7.1




More information about the SeaBIOS mailing list