IntelFsp2Pkg: BaseFspSwitchStackLib Support for X64

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3832
Add BaseFspSwitchStackLib Support for X64.

Cc: Chasel Chiu <chasel.chiu@intel.com>
Cc: Nate DeSimone <nathaniel.l.desimone@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Ashraf Ali S <ashraf.ali.s@intel.com>
Signed-off-by: Ted Kuo <ted.kuo@intel.com>
Reviewed-by: Chasel Chiu <chasel.chiu@intel.com>
This commit is contained in:
Kuo, Ted
2022-03-14 10:48:00 +08:00
committed by mergify[bot]
parent 0531f61376
commit 411b3ff6dd
4 changed files with 147 additions and 5 deletions

View File

@@ -20,16 +20,16 @@
**/
UINT32
UINTN
SwapStack (
IN UINT32 NewStack
IN UINTN NewStack
)
{
FSP_GLOBAL_DATA *FspData;
UINT32 OldStack;
UINTN OldStack;
FspData = GetFspGlobalDataPointer ();
OldStack = FspData->CoreStack;
FspData->CoreStack = NewStack;
FspData->CoreStack = (UINTN) NewStack;
return OldStack;
}