src: Replace MSR addresses with macros
Change-Id: I849dd406f5ccc733d4957eaf1c774745782f531a Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/28784 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Werner Zeh <werner.zeh@siemens.com>
This commit is contained in:
committed by
Martin Roth
parent
de5d04011c
commit
603963e1ba
@@ -50,9 +50,9 @@ static void report_cpu_info(void)
|
||||
|
||||
microcode_ver.lo = 0;
|
||||
microcode_ver.hi = 0;
|
||||
wrmsr(0x8B, microcode_ver);
|
||||
wrmsr(IA32_BIOS_SIGN_ID, microcode_ver);
|
||||
cpuidr = cpuid(1);
|
||||
microcode_ver = rdmsr(0x8b);
|
||||
microcode_ver = rdmsr(IA32_BIOS_SIGN_ID);
|
||||
printk(BIOS_DEBUG, "CPU id(%x) ucode:%08x %s\n", cpuidr.eax, microcode_ver.hi, cpu_name);
|
||||
aes = (cpuidr.ecx & (1 << 25)) ? 1 : 0;
|
||||
txt = (cpuidr.ecx & (1 << 6)) ? 1 : 0;
|
||||
|
Reference in New Issue
Block a user