]>
git.proxmox.com Git - mirror_edk2.git/blob - IntelFsp2Pkg/Library/BaseFspSwitchStackLib/FspSwitchStackLib.c
3 Copyright (c) 2014 - 2022, Intel Corporation. All rights reserved.<BR>
4 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include <Library/BaseLib.h>
10 #include <Library/FspCommonLib.h>
14 Switch the current stack to the previous saved stack.
16 @param[in] NewStack The new stack to be switched.
18 @return OldStack After switching to the saved stack,
19 this value will be saved in eax before returning.
29 FSP_GLOBAL_DATA
*FspData
;
32 FspData
= GetFspGlobalDataPointer ();
33 OldStack
= FspData
->CoreStack
;
34 FspData
->CoreStack
= (UINTN
) NewStack
;