mirror of https://review.coreboot.org/STM.git
Support not SmMonitorServiceProtocol.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
parent
5829c88ac5
commit
acbdef4d55
|
@ -180,7 +180,9 @@ LaunchStm (
|
|||
}
|
||||
|
||||
SmMonitorServiceProtocol = (EFI_SM_MONITOR_SERVICE_PROTOCOL *)(UINTN)mCommunicationData.SmMonitorServiceProtocol;
|
||||
ASSERT (SmMonitorServiceProtocol != NULL);
|
||||
if (SmMonitorServiceProtocol == NULL) {
|
||||
return ;
|
||||
}
|
||||
|
||||
//
|
||||
// VMCS size
|
||||
|
|
|
@ -41,7 +41,9 @@ TeardownStm (
|
|||
}
|
||||
|
||||
SmMonitorServiceProtocol = (EFI_SM_MONITOR_SERVICE_PROTOCOL *)(UINTN)mCommunicationData.SmMonitorServiceProtocol;
|
||||
ASSERT (SmMonitorServiceProtocol != NULL);
|
||||
if (SmMonitorServiceProtocol == NULL) {
|
||||
return ;
|
||||
}
|
||||
|
||||
AsmWbinvd ();
|
||||
|
||||
|
|
Loading…
Reference in New Issue