- Fix poor resource allocation estimate.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1066 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
dfa26a4d8c
commit
bbb6d1020f
|
@ -217,8 +217,12 @@ void compute_allocate_resource(
|
||||||
if (resource->flags & IORESOURCE_IO) {
|
if (resource->flags & IORESOURCE_IO) {
|
||||||
/* Don't allow potential aliases over the
|
/* Don't allow potential aliases over the
|
||||||
* legacy pci expansion card addresses.
|
* legacy pci expansion card addresses.
|
||||||
|
* The legacy pci decodes only 10 bits,
|
||||||
|
* uses 100h - 3ffh. Therefor, only 0 - ff
|
||||||
|
* can be used out of each 400h block of io
|
||||||
|
* space.
|
||||||
*/
|
*/
|
||||||
if ((base > 0x3ff) && ((base & 0x300) != 0)) {
|
if ((base & 0x300) != 0) {
|
||||||
base = (base & ~0x3ff) + 0x400;
|
base = (base & ~0x3ff) + 0x400;
|
||||||
}
|
}
|
||||||
/* Don't allow allocations in the VGA IO range.
|
/* Don't allow allocations in the VGA IO range.
|
||||||
|
|
Loading…
Reference in New Issue