From 075fbe820127c454a6854b87c277a2ca30dee1c2 Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Thu, 15 Apr 2010 05:19:29 +0000 Subject: Remove a few more warnings from fam10. Signed-off-by: Myles Watson Acked-by: Myles Watson git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5440 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/cpu/amd/microcode/microcode.c | 9 +++++---- src/cpu/amd/model_10xxx/init_cpus.c | 1 - src/cpu/amd/model_10xxx/model_10xxx_init.c | 2 -- src/cpu/amd/model_10xxx/update_microcode.c | 2 ++ 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/cpu/amd') diff --git a/src/cpu/amd/microcode/microcode.c b/src/cpu/amd/microcode/microcode.c index 08f61c2a9a..7a6333b93f 100644 --- a/src/cpu/amd/microcode/microcode.c +++ b/src/cpu/amd/microcode/microcode.c @@ -17,15 +17,16 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef __PRE_RAM__ - +#ifndef __ROMCC__ #include #include -#include #include #include -#include +#endif +#ifndef __PRE_RAM__ +#include +#include #endif struct microcode { diff --git a/src/cpu/amd/model_10xxx/init_cpus.c b/src/cpu/amd/model_10xxx/init_cpus.c index cce44d7869..3a86be296f 100644 --- a/src/cpu/amd/model_10xxx/init_cpus.c +++ b/src/cpu/amd/model_10xxx/init_cpus.c @@ -30,7 +30,6 @@ #define SET_FIDVID_CORE0_ONLY 0 #endif -void update_microcode(u32 cpu_deviceid); static void prep_fid_change(void); static void init_fidvid_stage2(u32 apicid, u32 nodeid); void cpuSetAMDMSR(void); diff --git a/src/cpu/amd/model_10xxx/model_10xxx_init.c b/src/cpu/amd/model_10xxx/model_10xxx_init.c index d0511a75ce..ef6d8e084b 100644 --- a/src/cpu/amd/model_10xxx/model_10xxx_init.c +++ b/src/cpu/amd/model_10xxx/model_10xxx_init.c @@ -37,8 +37,6 @@ #include #include -extern device_t get_node_pci(u32 nodeid, u32 fn); - #define MCI_STATUS 0x401 msr_t rdmsr_amd(u32 index) diff --git a/src/cpu/amd/model_10xxx/update_microcode.c b/src/cpu/amd/model_10xxx/update_microcode.c index 85b1aa84bf..b6c2c22945 100644 --- a/src/cpu/amd/model_10xxx/update_microcode.c +++ b/src/cpu/amd/model_10xxx/update_microcode.c @@ -23,7 +23,9 @@ #include #include #include +#endif +#ifndef __ROMCC__ #include #endif -- cgit v1.2.3