audk/UefiCpuPkg/Library/MpInitLib/Ia32
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
..
AmdSev.c UefiCpuPkg/MpInitLib: Use SEV-SNP AP Creation NAE event to launch APs 2021-12-09 06:28:10 +00:00
MpFuncs.nasm UefiCpuPkg/MpInitLib: Simplify logic in SwitchBsp 2022-08-31 04:23:55 +00:00