resource: Report correct secondary resource window
Once a bridge window resource is allocated, it becomes the base and limit for any resource on the secondary bus. Upper limit was incorrectly reported in the log while assigning secondary resources. Change-Id: I69f0a02aae6d13f77aaa2dace924b8970b23edad Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/8888 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
ade2c5e8b7
commit
134b616267
|
@ -525,6 +525,7 @@ static void allocate_resources(struct bus *bus, struct resource *bridge,
|
|||
/* Base must be aligned. */
|
||||
base = round(base, resource->align);
|
||||
resource->base = base;
|
||||
resource->limit = resource->base + resource->size - 1;
|
||||
resource->flags |= IORESOURCE_ASSIGNED;
|
||||
resource->flags &= ~IORESOURCE_STORED;
|
||||
base += resource->size;
|
||||
|
|
Loading…
Reference in New Issue