summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorGreg Menke <gregory.menke@gsfc.nasa.gov>2004-12-06 18:21:25 +0000
committerGreg Menke <gregory.menke@gsfc.nasa.gov>2004-12-06 18:21:25 +0000
commitc47f29d73394ac18b83f572e4aa6fa605dab81bc (patch)
tree5d6443bc8b389b2f61ce48e1ef72e84711f5d8af /c
parent PR 729/bsps (diff)
downloadrtems-c47f29d73394ac18b83f572e4aa6fa605dab81bc.tar.bz2
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.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/powerpc/shared/bootloader/pci.c13
1 files changed, 9 insertions, 4 deletions
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