Revision: 13925
http://edk2.svn.sourceforge.net/edk2/?rev=13925&view=rev
Author: vanjeff
Date: 2012-11-05 02:48:35 +0000 (Mon, 05 Nov 2012)
Log Message:
-----------
SyncSync patch r13912 from main trunk.
Fixed one bug: gSmmCorePrivate->InSmm is not set to FALSE correctly before
exiting.
Revision Links:
--------------
http://edk2.svn.sourceforge.net/edk2/?rev=13912&view=rev
Modified Paths:
--------------
branches/UDK2010.SR1/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
Modified: branches/UDK2010.SR1/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
===================================================================
--- branches/UDK2010.SR1/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
2012-11-05 02:44:20 UTC (rev 13924)
+++ branches/UDK2010.SR1/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c
2012-11-05 02:48:35 UTC (rev 13925)
@@ -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