mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-24 22:24:37 +02:00
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>
This commit is contained in:
parent
6c4c15fae6
commit
70a7493d65
@ -96,6 +96,11 @@ UINTN mNumberOfCpus = 1;
|
|||||||
//
|
//
|
||||||
BOOLEAN mSmmReadyToLock = FALSE;
|
BOOLEAN mSmmReadyToLock = FALSE;
|
||||||
|
|
||||||
|
//
|
||||||
|
// S3 boot flag
|
||||||
|
//
|
||||||
|
BOOLEAN mSmmS3Flag = FALSE;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Global used to cache PCD for SMM Code Access Check enable
|
// Global used to cache PCD for SMM Code Access Check enable
|
||||||
//
|
//
|
||||||
@ -485,6 +490,8 @@ SmmRestoreCpu (
|
|||||||
|
|
||||||
DEBUG ((EFI_D_INFO, "SmmRestoreCpu()\n"));
|
DEBUG ((EFI_D_INFO, "SmmRestoreCpu()\n"));
|
||||||
|
|
||||||
|
mSmmS3Flag = TRUE;
|
||||||
|
|
||||||
InitializeSpinLock (mMemoryMappedLock);
|
InitializeSpinLock (mMemoryMappedLock);
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user