Handle multi-status SMI interrupts

This commit is contained in:
Eugene D Myers 2020-05-05 17:54:13 -04:00
parent e0888cc816
commit 8614c208d3
1 changed files with 1 additions and 1 deletions

View File

@ -250,7 +250,7 @@ void LaunchPeVm(UINT32 PeType, UINT32 CpuIndex)
// launch the VM/PE once the SMI is handled
VmPeReady = 1;
if(InterlockedCompareExchange32(&PeSmiControl.PeSmiState, PESMIPNMI, PESMIHSMI) == PESMIHSMI)
if(InterlockedCompareExchange32(&PeSmiControl.PeSmiState, PESMIPNMI, PESMIHSMI) == PESMIHSMI)
{
// if we are here, then an SMI has come in and the system is processing it
// we need to get out and let the system process the SMI and then restart