diff options
Diffstat (limited to 'arch/x86/include/asm/microcode.h')
| -rw-r--r-- | arch/x86/include/asm/microcode.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/x86/include/asm/microcode.h b/arch/x86/include/asm/microcode.h index f98bd6625318..b59827e76529 100644 --- a/arch/x86/include/asm/microcode.h +++ b/arch/x86/include/asm/microcode.h | |||
| @@ -1,6 +1,21 @@ | |||
| 1 | #ifndef _ASM_X86_MICROCODE_H | 1 | #ifndef _ASM_X86_MICROCODE_H |
| 2 | #define _ASM_X86_MICROCODE_H | 2 | #define _ASM_X86_MICROCODE_H |
| 3 | 3 | ||
| 4 | #define native_rdmsr(msr, val1, val2) \ | ||
| 5 | do { \ | ||
| 6 | u64 __val = native_read_msr((msr)); \ | ||
| 7 | (void)((val1) = (u32)__val); \ | ||
| 8 | (void)((val2) = (u32)(__val >> 32)); \ | ||
| 9 | } while (0) | ||
| 10 | |||
| 11 | #define native_wrmsr(msr, low, high) \ | ||
| 12 | native_write_msr(msr, low, high) | ||
| 13 | |||
| 14 | #define native_wrmsrl(msr, val) \ | ||
| 15 | native_write_msr((msr), \ | ||
| 16 | (u32)((u64)(val)), \ | ||
| 17 | (u32)((u64)(val) >> 32)) | ||
| 18 | |||
| 4 | struct cpu_signature { | 19 | struct cpu_signature { |
| 5 | unsigned int sig; | 20 | unsigned int sig; |
| 6 | unsigned int pf; | 21 | unsigned int pf; |
