diff options
author | Jeff Fan <jeff.fan@intel.com> | 2016-07-02 11:08:04 +0800 |
---|---|---|
committer | Michael Kinney <michael.d.kinney@intel.com> | 2016-07-14 08:57:53 -0700 |
commit | 70a7493d65ddd302cc791013a34f264217a6e475 (patch) | |
tree | 6dba408bcca9e90f196debf0a23816ce347358d9 | |
parent | 6c4c15fae665e4c464ab56c830efb7a6399e11dd (diff) | |
download | edk2-platforms-70a7493d65ddd302cc791013a34f264217a6e475.tar.xz |
UefiCpuPkg/PiSmmCpuDxeSmm: Add SMM S3 boot flag
It will be set to TRUE during S3 resume.
Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Feng Tian <feng.tian@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
Regression-tested-by: Laszlo Ersek <lersek@redhat.com>
-rw-r--r-- | UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c index 0858d8f4d7..db36a0ad3c 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c @@ -97,6 +97,11 @@ UINTN mNumberOfCpus = 1; BOOLEAN mSmmReadyToLock = FALSE;
//
+// S3 boot flag
+//
+BOOLEAN mSmmS3Flag = FALSE;
+
+//
// Global used to cache PCD for SMM Code Access Check enable
//
BOOLEAN mSmmCodeAccessCheckEnable = FALSE;
@@ -485,6 +490,8 @@ SmmRestoreCpu ( DEBUG ((EFI_D_INFO, "SmmRestoreCpu()\n"));
+ mSmmS3Flag = TRUE;
+
InitializeSpinLock (mMemoryMappedLock);
//
|