1 #------------------------------------------------------------------------------
3 # Copyright (c) 2014 - 2015, Intel Corporation. All rights reserved.<BR>
4 # SPDX-License-Identifier: BSD-2-Clause-Patent
8 # Switch the stack from temporary memory to permenent memory.
10 #------------------------------------------------------------------------------
13 #------------------------------------------------------------------------------
16 # Pei2LoaderSwitchStack (
19 #------------------------------------------------------------------------------
20 ASM_GLOBAL ASM_PFX(Pei2LoaderSwitchStack)
21 ASM_PFX(Pei2LoaderSwitchStack):
23 jmp ASM_PFX(FspSwitchStack)
25 #------------------------------------------------------------------------------
28 # Loader2PeiSwitchStack (
31 #------------------------------------------------------------------------------
32 ASM_GLOBAL ASM_PFX(Loader2PeiSwitchStack)
33 ASM_PFX(Loader2PeiSwitchStack):
34 jmp ASM_PFX(FspSwitchStack)
36 #------------------------------------------------------------------------------
42 #------------------------------------------------------------------------------
43 ASM_GLOBAL ASM_PFX(FspSwitchStack)
44 ASM_PFX(FspSwitchStack):
46 #Save current contexts
59 call ASM_PFX(SwapStack)
63 # Restore previous contexts