diff options
author | Eric Biederman <ebiederm@xmission.com> | 2003-08-04 19:54:48 +0000 |
---|---|---|
committer | Eric Biederman <ebiederm@xmission.com> | 2003-08-04 19:54:48 +0000 |
commit | bbb6d1020f97b2694f496d87c1f49a0cb2e0bb96 (patch) | |
tree | b518a53b8d7223919a95ab86664ecd6a68318d53 /src/devices/device.c | |
parent | dfa26a4d8c45e5e7d55992df3ec868b9c1cebd36 (diff) |
- Fix poor resource allocation estimate.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1066 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/devices/device.c')
-rw-r--r-- | src/devices/device.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/devices/device.c b/src/devices/device.c index 9e5e24580c..8e6fcb3519 100644 --- a/src/devices/device.c +++ b/src/devices/device.c @@ -217,8 +217,12 @@ void compute_allocate_resource( if (resource->flags & IORESOURCE_IO) { /* Don't allow potential aliases over the * 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; } /* Don't allow allocations in the VGA IO range. |