mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-24 22:24:37 +02:00
UefiCpuPkg: Install gEdkiiEndOfS3ResumeGuid in S3Resume
Install gEdkiiEndOfS3ResumeGuid in S3Resume to trigger callback registered by PeiMpLib. The callback is to relocate Ap to new safe memory before jump to OS waking vector in S3 boot flow. Signed-off-by: Dun Tan <dun.tan@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Cc: Rahul Kumar <rahul1.kumar@intel.com> Cc: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
This commit is contained in:
parent
fcd09b1edb
commit
669291db5a
@ -260,6 +260,12 @@ EFI_PEI_PPI_DESCRIPTOR mPpiListS3SmmInitDoneTable = {
|
||||
0
|
||||
};
|
||||
|
||||
EFI_PEI_PPI_DESCRIPTOR mPpiListEndOfS3ResumeTable = {
|
||||
(EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
|
||||
&gEdkiiEndOfS3ResumeGuid,
|
||||
0
|
||||
};
|
||||
|
||||
//
|
||||
// Global Descriptor Table (GDT)
|
||||
//
|
||||
@ -490,6 +496,13 @@ S3ResumeBootOs (
|
||||
PERF_INMODULE_BEGIN ("EndOfS3Resume");
|
||||
|
||||
DEBUG ((DEBUG_INFO, "Signal EndOfS3Resume\n"));
|
||||
|
||||
//
|
||||
// Install EndOfS3Resume.
|
||||
//
|
||||
Status = PeiServicesInstallPpi (&mPpiListEndOfS3ResumeTable);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
|
||||
//
|
||||
// Signal EndOfS3Resume to SMM.
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user