diff options
author | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-11-01 23:51:22 +0000 |
---|---|---|
committer | vanjeff <vanjeff@6f19259b-4bc3-4df7-8a09-765794883524> | 2012-11-01 23:51:22 +0000 |
commit | a25cb9f604507a96c537eea6eb9c5a743b3c1b02 (patch) | |
tree | 1bbe0c6db3917b48e85ddac2b8f7c41308cd8236 /MdeModulePkg | |
parent | a326830d70ceca7c74ca66f99e3c29f753779a7e (diff) | |
download | edk2-a25cb9f604507a96c537eea6eb9c5a743b3c1b02.zip edk2-a25cb9f604507a96c537eea6eb9c5a743b3c1b02.tar.gz edk2-a25cb9f604507a96c537eea6eb9c5a743b3c1b02.tar.bz2 |
Fixed one bug: gSmmCorePrivate->InSmm is not set to FALSE correctly before exiting
signed-off-by: Jeff Fan <jeff.fan@intel.com>
reviewed-by: Michael.D.Kinney <Michael.D.Kinney@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13912 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg')
-rw-r--r-- | MdeModulePkg/Core/PiSmmCore/PiSmmCore.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c index 3c9d863..c1b3563 100644 --- a/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c +++ b/MdeModulePkg/Core/PiSmmCore/PiSmmCore.c @@ -245,6 +245,7 @@ SmmEntryPoint ( {
EFI_STATUS Status;
EFI_SMM_COMMUNICATE_HEADER *CommunicateHeader;
+ BOOLEAN InLegacyBoot;
PERF_START (NULL, "SMM", NULL, 0) ;
@@ -261,7 +262,8 @@ SmmEntryPoint ( //
// 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 @@ SmmEntryPoint ( //
// 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
//
|