X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FCore%2FPiSmmCore%2FPiSmmCore.c;h=e49661a00600c4d81103a52fe5ef4f29524134ad;hb=3c5963cf299e0abd4c2ce7156b171fa66546dc85;hp=0a50b5b70e1fdc8570915f0d17aea35797191c47;hpb=26a76fbcb2762826523bba325400e302bf346859;p=mirror_edk2.git diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c index 0a50b5b70e..e49661a006 100644 --- a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c +++ b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c @@ -245,7 +245,6 @@ SmmEntryPoint ( { EFI_STATUS Status; EFI_SMM_COMMUNICATE_HEADER *CommunicateHeader; - BOOLEAN OldInSmm; // // Update SMST using the context @@ -264,9 +263,8 @@ SmmEntryPoint ( } // - // Save current InSmm state and set InSmm state to TRUE, it will be used by SmmBase2 protocol + // Mark the InSmm flag as TRUE, it will be used by SmmBase2 protocol // - OldInSmm = gSmmCorePrivate->InSmm; gSmmCorePrivate->InSmm = TRUE; // @@ -301,9 +299,9 @@ SmmEntryPoint ( } // - // Restore original InSmm state as we are going to leave SMM + // Clear the InSmm flag as we are going to leave SMM // - gSmmCorePrivate->InSmm = OldInSmm; + gSmmCorePrivate->InSmm = FALSE; } /**