]> git.proxmox.com Git - mirror_edk2.git/commit - UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c
UefiCpuPkg: Supporting S3 in 64bit PEI
authorKuo, Ted <ted.kuo@intel.com>
Fri, 16 Dec 2022 12:46:26 +0000 (20:46 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 19 Dec 2022 06:12:56 +0000 (06:12 +0000)
commit6acf72901a2e811a2838cafd496239a34779066a
tree2e7fe55520ec9db7cea1189f9c98f25d82000a69
parent4dd7b865565aea4d28bea1b8d57d62620f6015a9
UefiCpuPkg: Supporting S3 in 64bit PEI

https://bugzilla.tianocore.org/show_bug.cgi?id=4195
1.Updated the GDT table in VTF0 to align with the one in S3Resume2Pei.
  By doing so can simplify the changes to enable S3 in 64bit PEI.
2.Use SwitchStack() between PEI and SMM in S3 resume path when both
  are in the same execution mode.
3.Transfer from PEI to OS waking vector by calling SwitchStack() when
  both are in the same execution mode.
4.Removed the debug assertion in S3Resume.c to support 64bit PEI.

Reviewed-by: Ray Ni <ray.ni@intel.com>
Reviewed-by: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Ashraf Ali S <ashraf.ali.s@intel.com>
Cc: Chinni B Duggapu <chinni.b.duggapu@intel.com>
Signed-off-by: Ted Kuo <ted.kuo@intel.com>
UefiCpuPkg/PiSmmCpuDxeSmm/CpuS3.c
UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf
UefiCpuPkg/ResetVector/Vtf0/Ia16/Real16ToFlat32.asm
UefiCpuPkg/Universal/Acpi/S3Resume2Pei/S3Resume.c