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.
This commit is contained in:
Greg Menke
2004-12-06 18:21:25 +00:00
parent c75f2d14d3
commit c47f29d733

View File

@@ -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) if ((r->type==PCI_BASE_ADDRESS_SPACE_IO)
? (r->size >= 0x10000) ? (r->size > 0x10000)
: (r->size >= 0x10000000)) { : (r->size > 0x18000000)) {
r->size = 0; sfree(r);
r->base = 0; return;
} }
/* Now insert into the list sorting by /* Now insert into the list sorting by