Author: linux_junkie Date: 2008-04-25 04:02:33 +0200 (Fri, 25 Apr 2008) New Revision: 3265
Modified: trunk/coreboot-v2/src/devices/device.c Log: 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
Modified: trunk/coreboot-v2/src/devices/device.c =================================================================== --- trunk/coreboot-v2/src/devices/device.c 2008-04-25 00:38:41 UTC (rev 3264) +++ trunk/coreboot-v2/src/devices/device.c 2008-04-25 02:02:33 UTC (rev 3265) @@ -305,11 +305,6 @@ * 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 @@ align = min_align; }
+ /* Propogate the resource alignment to the bridge register */ + if (align > bridge->align) { + bridge->align = align; + } + if (resource->flags & IORESOURCE_FIXED) { continue; }