mirror of https://github.com/acidanthera/audk.git
d1abb876f4
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> |
||
---|---|---|
.. | ||
Ia32 | ||
X64 | ||
AmdSev.c | ||
DxeMpInitLib.inf | ||
DxeMpInitLib.uni | ||
DxeMpLib.c | ||
Microcode.c | ||
MpEqu.inc | ||
MpLib.c | ||
MpLib.h | ||
PeiMpInitLib.inf | ||
PeiMpInitLib.uni | ||
PeiMpLib.c |