From 134b6162673733bb457adf3350148646c3821be1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Mon, 23 Mar 2015 19:58:23 +0200 Subject: resource: Report correct secondary resource window MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-on: http://review.coreboot.org/8888 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/device/device.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/device') diff --git a/src/device/device.c b/src/device/device.c index b3b8d241a7..117bd1802b 100644 --- a/src/device/device.c +++ b/src/device/device.c @@ -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; -- cgit v1.2.3