mirror of https://github.com/acidanthera/audk.git
Move RestoreSmmConfigurationInS3 function to PerformPreTasks().
In this way, we can centralize the silicon configuration in PerformRemainingTasks()/PerformPreTasks() function. If there are more features need to be configured, they can put in PerformRemainingTasks()/PerformPreTasks() only. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com> Reviewed-by: "Kinney, Michael D" <michael.d.kinney@intel.com> Reviewed-by: "Laszlo Ersek" <lersek@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18938 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
fe5f194943
commit
9f419739d1
|
@ -412,15 +412,9 @@ BSPHandler (
|
|||
AcquireSpinLockOrFail (&mSmmMpSyncData->CpuData[CpuIndex].Busy);
|
||||
|
||||
//
|
||||
// Restore SMM Configuration in S3 boot path.
|
||||
// Perform the pre tasks
|
||||
//
|
||||
if (mRestoreSmmConfigurationInS3) {
|
||||
//
|
||||
// Configure SMM Code Access Check feature if available.
|
||||
//
|
||||
ConfigSmmCodeAccessCheck ();
|
||||
mRestoreSmmConfigurationInS3 = FALSE;
|
||||
}
|
||||
PerformPreTasks ();
|
||||
|
||||
//
|
||||
// Invoke SMM Foundation EntryPoint with the processor information context.
|
||||
|
|
|
@ -1437,3 +1437,25 @@ PerformRemainingTasks (
|
|||
mSmmReadyToLock = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
Perform the pre tasks.
|
||||
|
||||
**/
|
||||
VOID
|
||||
PerformPreTasks (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
//
|
||||
// Restore SMM Configuration in S3 boot path.
|
||||
//
|
||||
if (mRestoreSmmConfigurationInS3) {
|
||||
//
|
||||
// Configure SMM Code Access Check feature if available.
|
||||
//
|
||||
ConfigSmmCodeAccessCheck ();
|
||||
|
||||
mRestoreSmmConfigurationInS3 = FALSE;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -586,6 +586,15 @@ PerformRemainingTasks (
|
|||
VOID
|
||||
);
|
||||
|
||||
/**
|
||||
Perform the pre tasks.
|
||||
|
||||
**/
|
||||
VOID
|
||||
PerformPreTasks (
|
||||
VOID
|
||||
);
|
||||
|
||||
/**
|
||||
Initialize MSR spin lock by MSR index.
|
||||
|
||||
|
|
Loading…
Reference in New Issue