mirror of
https://github.com/tianocore/edk2
synced 2026-08-27 00:23:19 -04:00
FSP may store something in FSBASE/GSBASE while bootloader may do so as well. Add the FSBASE/GSBASE save/restore logic in the FSP entry and exit to avoid the contents in FSBASE/GSBASE are corrupted by the other party. The change assumes there is no very old CPU that does not support rdfsbase/wrfsbase/rdgsbase/wrgsbase instructions. Signed-off-by: Ray Ni <ray.ni@intel.com> |
||
|---|---|---|
| .. | ||
| Ia32 | ||
| X64 | ||
| BaseFspSwitchStackLib.inf | ||
| FspSwitchStackLib.c | ||