--- zzzz-none-000/linux-3.10.107/arch/x86/kernel/cpu/mcheck/p5.c 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/x86/kernel/cpu/mcheck/p5.c 2021-02-04 17:41:59.000000000 +0000 @@ -5,10 +5,11 @@ #include #include #include -#include #include #include +#include +#include #include #include @@ -20,6 +21,8 @@ { u32 loaddr, hi, lotype; + ist_enter(regs); + rdmsr(MSR_IA32_P5_MC_ADDR, loaddr, hi); rdmsr(MSR_IA32_P5_MC_TYPE, lotype, hi); @@ -34,6 +37,8 @@ } add_taint(TAINT_MACHINE_CHECK, LOCKDEP_NOW_UNRELIABLE); + + ist_exit(regs); } /* Set up machine check reporting for processors with Intel style MCE: */ @@ -60,7 +65,7 @@ "Intel old style machine check architecture supported.\n"); /* Enable MCE: */ - set_in_cr4(X86_CR4_MCE); + cr4_set_bits(X86_CR4_MCE); printk(KERN_INFO "Intel old style machine check reporting enabled on CPU#%d.\n", smp_processor_id());