]>
git.proxmox.com Git - mirror_edk2.git/blob - IntelFspPkg/Library/BaseFspSwitchStackLib/FspSwitchStackLib.c
3 Copyright (c) 2014, 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.
28 FSP_GLOBAL_DATA
*FspData
;
31 FspData
= GetFspGlobalDataPointer ();
32 OldStack
= FspData
->CoreStack
;
33 FspData
->CoreStack
= NewStack
;