From 0560ab59413199c02abb5733434569a07f2009e5 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 17 Jan 2009 19:02:38 +0000 Subject: [PATCH] Fix PCI I/O ports allocation (Aurelien Jarno) git-svn-id: svn://coreboot.org/openbios/openbios-devel@416 f158a5a8-5612-0410-a976-696ce0be7e32 --- drivers/pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pci.c b/drivers/pci.c index 5d48420..00b79a2 100644 --- a/drivers/pci.c +++ b/drivers/pci.c @@ -760,7 +760,9 @@ int ob_pci_init(void) /* Find all PCI bridges */ mem_base = arch->mem_base; - io_base = arch->io_base; + /* I/O ports under 0x400 are used by devices mapped at fixed + location. */ + io_base = arch->io_base + 0x400; path = strdup(""); for (bus = 0; bus<0x100; bus++) { ob_scan_pci_bus(bus, &mem_base, &io_base, &path);