mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/PiSmmCpuDxeSmm: move InitSmmS3Cr3() into else block
BZ#: https://bugzilla.tianocore.org/show_bug.cgi?id=1165 InitSmmS3Cr3 () will update SmmS3ResumeState so moving the calling of it into else block to keep the logic consistency. Cc: Star Zeng <star.zeng@intel.com> Cc: Benjamin You <benjamin.you@intel.com> Cc: Eric Dong <eric.dong@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang <jian.j.wang@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
a95c9cfd18
commit
16d8465756
|
@ -752,12 +752,12 @@ InitSmmS3ResumeState (
|
|||
if (sizeof (UINTN) == sizeof (UINT32)) {
|
||||
SmmS3ResumeState->Signature = SMM_S3_RESUME_SMM_32;
|
||||
}
|
||||
}
|
||||
|
||||
//
|
||||
// Patch SmmS3ResumeState->SmmS3Cr3
|
||||
//
|
||||
InitSmmS3Cr3 ();
|
||||
//
|
||||
// Patch SmmS3ResumeState->SmmS3Cr3
|
||||
//
|
||||
InitSmmS3Cr3 ();
|
||||
}
|
||||
|
||||
//
|
||||
// Allocate safe memory in ACPI NVS for AP to execute hlt loop in
|
||||
|
|
Loading…
Reference in New Issue