audk/UefiCpuPkg/Library/MpInitLib
Liu, Zhiguang d1abb876f4 UefiCpuPkg/MpInitLib: Simplify logic in SwitchBsp
When switch bsp, old bsp and new bsp put CR0/CR4 into stack, and put IDT
and GDT register into a structure. After they exchange their stack, they
restore these registers. This logic is now implemented by assembly code.
This patch aims to reuse (Save/Restore)VolatileRegisters function to
replace such assembly code for better code readability.

Cc: Eric Dong <eric.dong@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
2022-08-31 04:23:55 +00:00
..
Ia32 UefiCpuPkg/MpInitLib: Simplify logic in SwitchBsp 2022-08-31 04:23:55 +00:00
X64 UefiCpuPkg/MpInitLib: Simplify logic in SwitchBsp 2022-08-31 04:23:55 +00:00
AmdSev.c MpInitLib: Only allocate below 1MB memory for 16bit code 2022-06-10 12:15:49 +00:00
DxeMpInitLib.inf UefiCpuPkg: Revert "UefiCpuPkg: Enable Tdx support in MpInitLib" 2022-05-11 08:40:53 +00:00
DxeMpInitLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
DxeMpLib.c MpInitLib: Allocate code buffer for PEI phase 2022-06-10 12:15:49 +00:00
Microcode.c UefiCpuPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MpEqu.inc MpInitLib: Only allocate below 1MB memory for 16bit code 2022-06-10 12:15:49 +00:00
MpLib.c UefiCpuPkg/MpInitLib: Simplify logic in SwitchBsp 2022-08-31 04:23:55 +00:00
MpLib.h UefiCpuPkg/MpInitLib: Simplify logic in SwitchBsp 2022-08-31 04:23:55 +00:00
PeiMpInitLib.inf UefiCpuPkg: Revert "UefiCpuPkg: Enable Tdx support in MpInitLib" 2022-05-11 08:40:53 +00:00
PeiMpInitLib.uni UefiCpuPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:28 -07:00
PeiMpLib.c MpInitLib: Allocate code buffer for PEI phase 2022-06-10 12:15:49 +00:00