From 7ca3ec2e5c8d03e2b73d9aaaf6758047cd32b433 Mon Sep 17 00:00:00 2001 From: Aaron Lwe Date: Fri, 25 Apr 2008 02:02:33 +0000 Subject: [PATCH] Fix so pci device memory allocation does not use memory base address at 0xfec00000, this is reserved for APIC. Signed-off-by: Aaron Lwe Acked-by: Joseph Smith git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3265 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/devices/device.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/devices/device.c b/src/devices/device.c index 635f876bb..d6a6ebd96 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; } -- 2.25.1