]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
Update PiSmmCore:
[mirror_edk2.git] / MdeModulePkg / Core / PiSmmCore / PiSmmCore.c
index 0a50b5b70e1fdc8570915f0d17aea35797191c47..e49661a00600c4d81103a52fe5ef4f29524134ad 100644 (file)
@@ -245,7 +245,6 @@ SmmEntryPoint (
 {\r
   EFI_STATUS                  Status;\r
   EFI_SMM_COMMUNICATE_HEADER  *CommunicateHeader;\r
-  BOOLEAN                     OldInSmm;\r
 \r
   //\r
   // Update SMST using the context\r
@@ -264,9 +263,8 @@ SmmEntryPoint (
   }\r
 \r
   //\r
-  // Save current InSmm state and set InSmm state to TRUE, it will be used by SmmBase2 protocol\r
+  // Mark the InSmm flag as TRUE, it will be used by SmmBase2 protocol\r
   //\r
-  OldInSmm = gSmmCorePrivate->InSmm;\r
   gSmmCorePrivate->InSmm = TRUE;\r
 \r
   //\r
@@ -301,9 +299,9 @@ SmmEntryPoint (
   }\r
 \r
   //\r
-  // Restore original InSmm state as we are going to leave SMM\r
+  // Clear the InSmm flag as we are going to leave SMM\r
   //\r
-  gSmmCorePrivate->InSmm = OldInSmm;\r
+  gSmmCorePrivate->InSmm = FALSE;\r
 }\r
 \r
 /**\r