From: Isaku Yamahata Date: Fri, 24 Dec 2010 01:51:08 +0000 (+0900) Subject: pciinit: fix off-by-one X-Git-Tag: rel-0.6.2~35 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=74fd94294ee6eac510ab89819eae27442cbbff5d;p=seabios.git pciinit: fix off-by-one IO port ends at 64K - 1. not 64K. Signed-off-by: Isaku Yamahata --- diff --git a/src/pciinit.c b/src/pciinit.c index 795672b..ee2e72d 100644 --- a/src/pciinit.c +++ b/src/pciinit.c @@ -402,7 +402,7 @@ pci_setup(void) dprintf(3, "pci setup\n"); - pci_region_init(&pci_bios_io_region, 0xc000, 64 * 1024); + pci_region_init(&pci_bios_io_region, 0xc000, 64 * 1024 - 1); pci_region_init(&pci_bios_mem_region, BUILD_PCIMEM_START, BUILD_PCIMEM_END - 1); pci_region_init(&pci_bios_prefmem_region,