diff options
author | arch import user (historical) <svn@openbios.org> | 2005-07-06 17:17:25 +0000 |
---|---|---|
committer | arch import user (historical) <svn@openbios.org> | 2005-07-06 17:17:25 +0000 |
commit | 6ca7636c8f52560e732cdd5b1c7829cda5aa2bde (patch) | |
tree | cc45ae7c4dea6e2c5338f52b4314106bf07023be /src/include/cpu/x86/msr.h | |
parent | b2ed53dd5669c2c3839633bd2b3b4af709a5b149 (diff) |
Revision: linuxbios@linuxbios.org--devel/freebios--devel--2.0--patch-51
Creator: Yinghai Lu <yhlu@tyan.com>
cache_as_ram for AMD and some intel
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1967 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/include/cpu/x86/msr.h')
-rw-r--r-- | src/include/cpu/x86/msr.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/include/cpu/x86/msr.h b/src/include/cpu/x86/msr.h index 4f481bdf4b..c4bc55a343 100644 --- a/src/include/cpu/x86/msr.h +++ b/src/include/cpu/x86/msr.h @@ -1,8 +1,7 @@ #ifndef CPU_X86_MSR_H #define CPU_X86_MSR_H - -#ifdef __ROMCC__ +#if defined( __ROMCC__) && !defined (__GNUC__) typedef __builtin_msr_t msr_t; @@ -16,9 +15,7 @@ static void wrmsr(unsigned long index, msr_t msr) __builtin_wrmsr(index, msr.lo, msr.hi); } -#endif /* __ROMCC__ */ - -#if defined(__GNUC__) && !defined(__ROMCC__) +#else typedef struct msr_struct { @@ -46,7 +43,7 @@ static inline void wrmsr(unsigned index, msr_t msr) ); } -#endif /* __GNUC__ */ +#endif /* ROMCC__ && !__GNUC__ */ #endif /* CPU_X86_MSR_H */ |