From e8a91347b182281f18c969229f02e07102e21898 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Mon, 22 Apr 2013 10:46:53 -0700 Subject: GOOGLE/SNOW: fix stupid paren error This simple error led to corrupted graphics. How annoying. Change-Id: I2295c0df0f1d16014a603dc5d66bd4d72f3fb7c9 Signed-off-by: Ronald G. Minnich Reviewed-on: http://review.coreboot.org/3120 Reviewed-by: David Hendricks Tested-by: build bot (Jenkins) --- src/cpu/samsung/exynos5250/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpu/samsung/exynos5250/cpu.c b/src/cpu/samsung/exynos5250/cpu.c index 09b670e9d8..e122413f50 100644 --- a/src/cpu/samsung/exynos5250/cpu.c +++ b/src/cpu/samsung/exynos5250/cpu.c @@ -68,7 +68,7 @@ static void exynos_displayport_init(device_t dev) vi.cmap = (void *)lcdbase; lcdbase += 64*KiB; - mmio_resource(dev, 1, lcdbase/KiB, fb_size + (KiB-1)/KiB); + mmio_resource(dev, 1, lcdbase/KiB, (fb_size + KiB - 1)/KiB); printk(BIOS_DEBUG, "Initializing exynos VGA, base %p\n",(void *)lcdbase); ret = lcd_ctrl_init(&vi, &panel, (void *)lcdbase); -- cgit v1.2.3