From c47f29d73394ac18b83f572e4aa6fa605dab81bc Mon Sep 17 00:00:00 2001 From: Greg Menke Date: Mon, 6 Dec 2004 18:21:25 +0000 Subject: PR 729/bsps * bootloader/pci.c: Removed the r->size=0 and r->base=0 assignement which makes too-large regions conflict with onboard hardware, replacing it with sfree which deletes the memory region from the setup code, leaving it disabled. --- c/src/lib/libbsp/powerpc/shared/bootloader/pci.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'c') diff --git a/c/src/lib/libbsp/powerpc/shared/bootloader/pci.c b/c/src/lib/libbsp/powerpc/shared/bootloader/pci.c index 2d57b60e0f..ef572b3949 100644 --- a/c/src/lib/libbsp/powerpc/shared/bootloader/pci.c +++ b/c/src/lib/libbsp/powerpc/shared/bootloader/pci.c @@ -251,11 +251,16 @@ static void insert_resource(pci_resource *r) { } } + + /* 2004/11/30, PR 729 fix is removing the r->size=0 and r->base=0 + * assignement which makes too-large regions conflict with onboard + * hardware, replacing it with sfree which deletes the memory region + * from the setup code, leaving it disabled. */ if ((r->type==PCI_BASE_ADDRESS_SPACE_IO) - ? (r->size >= 0x10000) - : (r->size >= 0x10000000)) { - r->size = 0; - r->base = 0; + ? (r->size > 0x10000) + : (r->size > 0x18000000)) { + sfree(r); + return; } /* Now insert into the list sorting by -- cgit v1.2.3