diff options
author | Aaron Lwe <aaron.lwe@gmail.com> | 2008-04-25 02:02:33 +0000 |
---|---|---|
committer | Joseph Smith <joe@smittys.pointclark.net> | 2008-04-25 02:02:33 +0000 |
commit | 7ca3ec2e5c8d03e2b73d9aaaf6758047cd32b433 (patch) | |
tree | 0bb28fdc365bd317c6344ede5154e531e3fc0f37 | |
parent | 6fd385d154d4adac4a868e5c481c12420f9bfc5f (diff) | |
download | coreboot-7ca3ec2e5c8d03e2b73d9aaaf6758047cd32b433.tar.xz |
Fix so pci device memory allocation does not use memory base address at 0xfec00000, this is reserved for APIC.
Signed-off-by: Aaron Lwe <aaron.lwe@gmail.com>
Acked-by: Joseph Smith <joe@settoplinux.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3265 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r-- | src/devices/device.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/device.c b/src/devices/device.c index 635f876bbe..d6a6ebd967 100644 --- a/src/devices/device.c +++ b/src/devices/device.c @@ -305,11 +305,6 @@ void compute_allocate_resource( * return them. Some resources must be set even when they have * no size. PCI bridge resources are a good example of this. */ - /* Propogate the resource alignment to the bridge register */ - if (resource->align > bridge->align) { - bridge->align = resource->align; - } - /* Make certain we are dealing with a good minimum size */ size = resource->size; align = resource->align; @@ -317,6 +312,11 @@ void compute_allocate_resource( align = min_align; } + /* Propogate the resource alignment to the bridge register */ + if (align > bridge->align) { + bridge->align = align; + } + if (resource->flags & IORESOURCE_FIXED) { continue; } |