Revision: 13912
          http://edk2.svn.sourceforge.net/edk2/?rev=13912&view=rev
Author:   vanjeff
Date:     2012-11-01 23:51:22 +0000 (Thu, 01 Nov 2012)
Log Message:
-----------
Fixed one bug: gSmmCorePrivate->InSmm is not set to FALSE correctly before 
exiting 

signed-off-by: Jeff Fan <[email protected]>
reviewed-by: Michael.D.Kinney <[email protected]>

Modified Paths:
--------------
    trunk/edk2/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c

Modified: trunk/edk2/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
===================================================================
--- trunk/edk2/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c  2012-11-01 07:58:44 UTC 
(rev 13911)
+++ trunk/edk2/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c  2012-11-01 23:51:22 UTC 
(rev 13912)
@@ -245,6 +245,7 @@
 {
   EFI_STATUS                  Status;
   EFI_SMM_COMMUNICATE_HEADER  *CommunicateHeader;
+  BOOLEAN                     InLegacyBoot;
 
   PERF_START (NULL, "SMM", NULL, 0) ;
 
@@ -261,7 +262,8 @@
   //
   // If a legacy boot has occured, then make sure gSmmCorePrivate is not 
accessed
   //
-  if (!mInLegacyBoot) {
+  InLegacyBoot = mInLegacyBoot;
+  if (!InLegacyBoot) {
     //
     // Mark the InSmm flag as TRUE, it will be used by SmmBase2 protocol
     //
@@ -307,7 +309,7 @@
   //
   // If a legacy boot has occured, then make sure gSmmCorePrivate is not 
accessed
   //
-  if (!mInLegacyBoot) {
+  if (!InLegacyBoot) {
     //
     // Clear the InSmm flag as we are going to leave SMM
     //

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to