mirror of https://review.coreboot.org/STM.git
Code cleanup
Signed-off-by: Eugene D. Myers <edmyers@tycho.nsa.gov>
This commit is contained in:
parent
5eda06e2e8
commit
65bd757686
|
@ -42,7 +42,7 @@ SmiVmcallInitializeProtectionHandler (
|
|||
|
||||
/**
|
||||
|
||||
This function is the STARt_API handler for SMI.
|
||||
This function is the START_API handler for SMI.
|
||||
|
||||
@param Index CPU index
|
||||
@param AddressParameter Addresss parameter
|
||||
|
@ -73,8 +73,8 @@ SmiVmcallStartHandler (
|
|||
if(Index == 0)
|
||||
{
|
||||
#if 0
|
||||
// Dump the SMI handler EPT tables
|
||||
//EptDumpPageTable (&mGuestContextCommonSmm[0].EptPointer); // **DEBUG** Dump the SMI Handler EPT tables
|
||||
// Dump the SMI handler EPT tables
|
||||
EptDumpPageTable (&mGuestContextCommonSmm[0].EptPointer);
|
||||
#endif
|
||||
// sync the BSP CPU once the API is ready
|
||||
CpuReadySync(Index);
|
||||
|
@ -91,10 +91,9 @@ SmiVmcallStartHandler (
|
|||
#endif
|
||||
return STM_SUCCESS;
|
||||
} else {
|
||||
DEBUG ((EFI_D_ERROR,
|
||||
"%ld SmiVmcallStartHandler - STM_API_START -- Error STM already started\n",
|
||||
(UINTN) Index));
|
||||
|
||||
DEBUG ((EFI_D_ERROR,
|
||||
"%ld SmiVmcallStartHandler - STM_API_START -- Error STM already started\n",
|
||||
(UINTN) Index));
|
||||
return ERROR_STM_ALREADY_STARTED;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -54,11 +54,10 @@ VOID
|
|||
VmcsLinkPtr = VmRead64 (VMCS_64_GUEST_VMCS_LINK_PTR_INDEX);
|
||||
if (IsOverlap (VmcsLinkPtr, VmcsSize, mHostContextCommon.TsegBase, mHostContextCommon.TsegLength)) {
|
||||
// Overlap TSEG
|
||||
DEBUG ((EFI_D_ERROR,
|
||||
"%ld RsmHandler - VmcsLinkPtr violation - %016lx\n",
|
||||
Index,
|
||||
VmcsLinkPtr));
|
||||
|
||||
DEBUG ((EFI_D_ERROR,
|
||||
"%ld RsmHandler - VmcsLinkPtr violation - %016lx\n",
|
||||
Index,
|
||||
VmcsLinkPtr));
|
||||
CpuDeadLoop() ;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue