1 ;------------------------------------------------------------------------------
3 ; Copyright (c) 2016, 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 ;------------------------------------------------------------------------------
14 extern ASM_PFX(SwapStack)
16 ;------------------------------------------------------------------------------
19 ; Pei2LoaderSwitchStack (
22 ;------------------------------------------------------------------------------
23 global ASM_PFX(Pei2LoaderSwitchStack)
24 ASM_PFX(Pei2LoaderSwitchStack):
26 jmp ASM_PFX(FspSwitchStack)
28 ;------------------------------------------------------------------------------
31 ; Loader2PeiSwitchStack (
34 ;------------------------------------------------------------------------------
35 global ASM_PFX(Loader2PeiSwitchStack)
36 ASM_PFX(Loader2PeiSwitchStack):
37 jmp ASM_PFX(FspSwitchStack)
39 ;------------------------------------------------------------------------------
45 ;------------------------------------------------------------------------------
46 global ASM_PFX(FspSwitchStack)
47 ASM_PFX(FspSwitchStack):
48 ; Save current contexts
58 call ASM_PFX(SwapStack)
61 ; Restore previous contexts