From 139d5ac037de828f89c36e39c6dd15610650cede Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 30 Dec 2011 16:36:16 -0500 Subject: [PATCH] Don't leave upper bits of 64bit BARs unitialized during pci init. Signed-off-by: Kevin O'Connor --- src/pciinit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pciinit.c b/src/pciinit.c index 7d83368..9f3fdd4 100644 --- a/src/pciinit.c +++ b/src/pciinit.c @@ -545,8 +545,10 @@ static void pci_bios_map_devices(struct pci_bus *busses) i, addr, pci->bars[i].size, region_type_name[type]); pci_set_io_region_addr(pci, i, addr); - if (pci->bars[i].is64) + if (pci->bars[i].is64) { i++; + pci_set_io_region_addr(pci, i, 0); + } } } } -- 2.25.1