mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/PiSmmCpuDxeSmm: Initialize gSmst fields on S3 resume
Update S3 resume path to initialize the fields of gSmst before the gSmst fields are used to complete initialization in S3 resume. Cc: Jeff Fan <jeff.fan@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19504 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
e9b3a6c926
commit
6011381199
|
@ -1496,6 +1496,15 @@ PerformPreTasks (
|
||||||
// Restore SMM Configuration in S3 boot path.
|
// Restore SMM Configuration in S3 boot path.
|
||||||
//
|
//
|
||||||
if (mRestoreSmmConfigurationInS3) {
|
if (mRestoreSmmConfigurationInS3) {
|
||||||
|
//
|
||||||
|
// Need make sure gSmst is correct because below function may use them.
|
||||||
|
//
|
||||||
|
gSmst->SmmStartupThisAp = gSmmCpuPrivate->SmmCoreEntryContext.SmmStartupThisAp;
|
||||||
|
gSmst->CurrentlyExecutingCpu = gSmmCpuPrivate->SmmCoreEntryContext.CurrentlyExecutingCpu;
|
||||||
|
gSmst->NumberOfCpus = gSmmCpuPrivate->SmmCoreEntryContext.NumberOfCpus;
|
||||||
|
gSmst->CpuSaveStateSize = gSmmCpuPrivate->SmmCoreEntryContext.CpuSaveStateSize;
|
||||||
|
gSmst->CpuSaveState = gSmmCpuPrivate->SmmCoreEntryContext.CpuSaveState;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Configure SMM Code Access Check feature if available.
|
// Configure SMM Code Access Check feature if available.
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue