From 86fc9848ae781fca8c7013e785f467d602152395 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 13 Oct 2011 17:26:10 -0700 Subject: [PATCH] Fix compilation of AMD GX2 northbridge code with gcc 4.6 Change-Id: I71d96b7cd36dd99a3590ec311c11f67f13012e68 Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/267 Tested-by: build bot (Jenkins) Reviewed-by: Uwe Hermann --- src/northbridge/amd/gx2/northbridgeinit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/northbridge/amd/gx2/northbridgeinit.c b/src/northbridge/amd/gx2/northbridgeinit.c index fd8d3f9d8..e4aaa8bb4 100644 --- a/src/northbridge/amd/gx2/northbridgeinit.c +++ b/src/northbridge/amd/gx2/northbridgeinit.c @@ -485,7 +485,7 @@ performance: static void GeodeLinkPriority(void) { - msr_t msr; + msr_t msr = { 0, 0 }; struct msrinit *prio = GeodeLinkPriorityTable; int i; @@ -526,7 +526,7 @@ static void setShadowRCONF(uint32_t shadowHi, uint32_t shadowLo) /* ok this is whacky bit translation time. */ int bit; uint8_t shadowByte; - msr_t msr; + msr_t msr = { 0, 0 }; shadowByte = (uint8_t) (shadowLo >> 16); /* load up D000 settings in edx. */ -- 2.25.1