mirror of https://review.coreboot.org/STM.git
Skip MSR 0x400000xx access.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
parent
06960576d1
commit
5829c88ac5
|
@ -53,6 +53,11 @@ ReadMsrHandler (
|
|||
break;
|
||||
|
||||
default:
|
||||
if (MsrIndex >= 0x40000000 && MsrIndex <= 0x400000FF) {
|
||||
Data64 = 0;
|
||||
DEBUG ((EFI_D_INFO, "(FRM) !!!ReadMsrHandler - Other!!! %08x<-%016lx\n", (UINTN)MsrIndex, Data64));
|
||||
break;
|
||||
}
|
||||
Data64 = AsmReadMsr64 (MsrIndex);
|
||||
#if 0
|
||||
DEBUG ((EFI_D_INFO, "(FRM) !!!ReadMsrHandler - Other!!! %08x<-%016lx\n", (UINTN)MsrIndex, Data64));
|
||||
|
@ -180,6 +185,10 @@ WriteMsrHandler (
|
|||
#if 0
|
||||
DEBUG ((EFI_D_INFO, "(FRM) !!!WriteMsrHandler - Other!!! %08x<-%016lx\n", (UINTN)MsrIndex, Data64));
|
||||
#endif
|
||||
if (MsrIndex >=0x40000000 && MsrIndex <=0x400000FF) {
|
||||
DEBUG ((EFI_D_INFO, "(FRM) !!!WriteMsrHandler - Other!!! %08x<-%016lx\n", (UINTN)MsrIndex, Data64));
|
||||
break;
|
||||
}
|
||||
AsmWriteMsr64 (MsrIndex, Data64);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue