mirror of https://review.coreboot.org/STM.git
Add Microcode update handling.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
parent
a0a6a1c031
commit
2b5345f479
|
@ -168,6 +168,14 @@ WriteMsrHandler (
|
|||
AsmWriteMsr (MsrIndex, Data64); // VMM does not use this
|
||||
break;
|
||||
#endif
|
||||
case IA32_BIOS_UPDT_TRIG_MSR_INDEX:
|
||||
DEBUG((EFI_D_INFO, "(FRM) !!!WriteMsrHandler (Microcode) - !!! %08x<-%016lx\n", (UINTN)MsrIndex, Data64));
|
||||
Data64 = GuestVirtualToHostPhysical(Index, (UINTN)Data64);
|
||||
if (Data64 != 0) {
|
||||
DEBUG((EFI_D_INFO, "(FRM) !!! Microcode %016lx\n", Data64));
|
||||
AsmWriteMsr64(MsrIndex, Data64);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
#if 0
|
||||
DEBUG ((EFI_D_INFO, "(FRM) !!!WriteMsrHandler - Other!!! %08x<-%016lx\n", (UINTN)MsrIndex, Data64));
|
||||
|
|
Loading…
Reference in New Issue