summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEric Biederman <ebiederm@xmission.com>2003-08-04 19:54:48 +0000
committerEric Biederman <ebiederm@xmission.com>2003-08-04 19:54:48 +0000
commitbbb6d1020f97b2694f496d87c1f49a0cb2e0bb96 (patch)
treeb518a53b8d7223919a95ab86664ecd6a68318d53 /src
parentdfa26a4d8c45e5e7d55992df3ec868b9c1cebd36 (diff)
downloadcoreboot-bbb6d1020f97b2694f496d87c1f49a0cb2e0bb96.tar.xz
- Fix poor resource allocation estimate.
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1066 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src')
-rw-r--r--src/devices/device.c6
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.