]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/PrePeiCore/Arm/SwitchStack.S
ArmPlatformPkg: list module-internal header files in INF [Sources]
[mirror_edk2.git] / ArmPlatformPkg / PrePeiCore / Arm / SwitchStack.S
1 #------------------------------------------------------------------------------
2 #
3 # Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
4 # Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
5 # SPDX-License-Identifier: BSD-2-Clause-Patent
6 #
7 #------------------------------------------------------------------------------
8
9 #include <AsmMacroIoLib.h>
10
11 #/**
12 # This allows the caller to switch the stack and return
13 #
14 # @param StackDelta Signed amount by which to modify the stack pointer
15 #
16 # @return Nothing. Goes to the Entry Point passing in the new parameters
17 #
18 #**/
19 #VOID
20 #EFIAPI
21 #SecSwitchStack (
22 # VOID *StackDelta
23 # )#
24 #
25 ASM_FUNC(SecSwitchStack)
26 mov R1, R13
27 add R1, R0, R1
28 mov R13, R1
29 bx LR
30
31
32