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 <rminnich@gmail.com>
Reviewed-on: http://review.coreboot.org/7122
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Ronald G. Minnich 2014-10-18 11:19:28 +00:00
parent 1ab4495204
commit 2fc0a1d457
1 changed files with 2 additions and 1 deletions

View File

@ -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;