From 971ebd8ee6de9ac30b208da53862918e506ac5e7 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 13 Oct 2011 17:26:43 -0700 Subject: [PATCH] Fix AMD SB800 (cimx) southbridge code to compile with gcc 4.6 Change-Id: I672135a9b6e3b641ceb655cb00d40ee760c17edc Signed-off-by: Stefan Reinauer Reviewed-on: http://review.coreboot.org/268 Tested-by: build bot (Jenkins) Reviewed-by: Uwe Hermann --- src/southbridge/amd/cimx/sb800/SBPLATFORM.h | 3 +++ src/vendorcode/amd/cimx/sb800/AMDSBLIB.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/src/southbridge/amd/cimx/sb800/SBPLATFORM.h b/src/southbridge/amd/cimx/sb800/SBPLATFORM.h index 164a65156f..d7317a23a2 100644 --- a/src/southbridge/amd/cimx/sb800/SBPLATFORM.h +++ b/src/southbridge/amd/cimx/sb800/SBPLATFORM.h @@ -155,4 +155,7 @@ typedef union _PCI_ADDR { #define cimEhciTrafficHandingDefault FALSE #define cimFusionMsgCMultiCoreDefault FALSE #define cimFusionMsgCStageDefault FALSE + +#include "vendorcode/amd/cimx/sb800/AMDSBLIB.h" + #endif // _AMD_SBPLATFORM_H_ diff --git a/src/vendorcode/amd/cimx/sb800/AMDSBLIB.h b/src/vendorcode/amd/cimx/sb800/AMDSBLIB.h index 6c92227eda..b2a0a1b75a 100644 --- a/src/vendorcode/amd/cimx/sb800/AMDSBLIB.h +++ b/src/vendorcode/amd/cimx/sb800/AMDSBLIB.h @@ -43,6 +43,8 @@ * */ +#ifndef __VENDORCODE_AMD_CIMX_SB800_AMDSBLIB_H__ +#define __VENDORCODE_AMD_CIMX_SB800_AMDSBLIB_H__ //AMDSBLIB Routines @@ -116,3 +118,5 @@ void WriteIo32(IN unsigned short Address, IN unsigned int Data); //void CpuidRead(IN unsigned int CpuidFcnAddress, OUT CPUID_DATA *Value); void CpuidRead(unsigned int CpuidFcnAddress, CPUID_DATA *Value); unsigned char ReadNumberOfCpuCores(void); + +#endif