diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-20 15:07:54 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-20 15:07:54 -0500 |
| commit | 2bb2c5e235e8459de5761f89bc2bcb2efd2b6b45 (patch) | |
| tree | 3671fd287ecbe739cb79537fb5353bcecb939aa9 /arch/x86/include/asm/microcode.h | |
| parent | 4500cf60dbe4b7f514d11b24c3e1edfda2a6d69d (diff) | |
| parent | 9c079129d7bfb24251890e40694fd79dd1872ed9 (diff) | |
Merge branch 'x86-microcode-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 microcode loader updates from Ingo Molnar:
"There are two main changes in this tree:
- AMD microcode early loading fixes
- some microcode loader source files reorganization"
* 'x86-microcode-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86, microcode: Move to a proper location
x86, microcode, AMD: Fix early ucode loading
x86, microcode: Share native MSR accessing variants
x86, ramdisk: Export relocated ramdisk VA
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; |
