diff options
author | Ronald G. Minnich <rminnich@gmail.com> | 2014-10-18 11:19:28 +0000 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2014-10-18 16:49:21 +0200 |
commit | 2fc0a1d457901171cc226390925f0a6320821549 (patch) | |
tree | bc971d490c69009a91c389bf486d5313c68cbe2a | |
parent | 1ab4495204b5bfe145edb5f1d0cac0a7017d79f0 (diff) |
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>
-rw-r--r-- | src/southbridge/amd/cimx/sb800/cfg.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |