From 2fc0a1d457901171cc226390925f0a6320821549 Mon Sep 17 00:00:00 2001 From: "Ronald G. Minnich" Date: Sat, 18 Oct 2014 11:19:28 +0000 Subject: [PATCH] cimx/sb800: fix pedantic gcc error A cast did not work for me, but this variable did. This is one of the many issues with building e3501 I'm running into. Change-Id: Ifb19a17770604f2d63dfef762d08200add77ee34 Signed-off-by: Ronald G. Minnich Reviewed-on: http://review.coreboot.org/7122 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/southbridge/amd/cimx/sb800/cfg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/southbridge/amd/cimx/sb800/cfg.c b/src/southbridge/amd/cimx/sb800/cfg.c index 91b6067055..9f10dc5c7d 100644 --- a/src/southbridge/amd/cimx/sb800/cfg.c +++ b/src/southbridge/amd/cimx/sb800/cfg.c @@ -76,6 +76,7 @@ unsigned long get_top_of_ram(void) */ void sb800_cimx_config(AMDSBCFG *sb_config) { + uint16_t bios_size = BIOS_SIZE; if (!sb_config) return; @@ -88,7 +89,7 @@ void sb800_cimx_config(AMDSBCFG *sb_config) sb_config->StdHeader.PcieBasePtr = PCIEX_BASE_ADDRESS; /* static Build Parameters */ - sb_config->BuildParameters.BiosSize = BIOS_SIZE; + sb_config->BuildParameters.BiosSize = bios_size; sb_config->BuildParameters.LegacyFree = LEGACY_FREE; sb_config->BuildParameters.WatchDogTimerBase = WATCHDOG_TIMER_BASE_ADDRESS; sb_config->BuildParameters.AcpiGpe0BlkAddr = GPE0_BLK_ADDRESS;