audk/UefiCpuPkg/Library/MpInitLib
Xie, Yuanhao 73ccde8f6d UefiCpuPkg: Has APs in 64 bit long-mode before booting to OS.
During the finalization of Mp initialization before booting into the OS,
 depending on whether Mwait is supported or not, AsmRelocateApLoop
 places Aps in MWAIT-loop or HLT-loop.

Since paging is necessary for long mode, the original implementation of
moving APs to 32-bit was to disable paging to ensure that the booting
does not crash.

The current modification creates a page table in reserved memory,
avoiding switching modes and reclaiming memory by OS. This modification
is only for 64 bit mode.

More specifically, we keep the AMD logic as the original code flow,
extract and update the Intel-related code, where the APs would stay
in 64-bit, and run in a Mwait or Hlt loop until the OS wake them up.

Signed-off-by: Ray Ni <ray.ni@intel.com>
Signed-off-by: Yuanhao Xie <yuanhao.xie@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
2022-12-20 08:38:28 +00:00
..
Ia32 UefiCpuPkg: Has APs in 64 bit long-mode before booting to OS. 2022-12-20 08:38:28 +00:00
X64 UefiCpuPkg: Has APs in 64 bit long-mode before booting to OS. 2022-12-20 08:38:28 +00:00
AmdSev.c OvmfPkg/UefiCpuPkg: Add CcExit prefix to the APIs of CcExitLib 2022-11-14 04:55:34 +00:00
DxeMpInitLib.inf UefiCpuPkg: Has APs in 64 bit long-mode before booting to OS. 2022-12-20 08:38:28 +00:00
DxeMpInitLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
DxeMpLib.c UefiCpuPkg: Has APs in 64 bit long-mode before booting to OS. 2022-12-20 08:38:28 +00:00
Microcode.c UefiCpuPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MpEqu.inc UefiCpuPkg: Duplicated AsmRelocateApLoop as AsmRelocateApLoopAmd 2022-12-20 08:38:28 +00:00
MpLib.c OvmfPkg/UefiCpuPkg/UefiPayloadPkg: Rename VmgExitLib to CcExitLib 2022-11-14 04:55:34 +00:00
MpLib.h UefiCpuPkg: Has APs in 64 bit long-mode before booting to OS. 2022-12-20 08:38:28 +00:00
PeiMpInitLib.inf OvmfPkg/UefiCpuPkg/UefiPayloadPkg: Rename VmgExitLib to CcExitLib 2022-11-14 04:55:34 +00:00
PeiMpInitLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
PeiMpLib.c UefiCpuPkg: Use Top of each AP's stack to save CpuMpData 2022-08-31 04:23:55 +00:00