]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/PrePeiCore/SwitchStack.S
Add ArmPlatformPkg from ARM Ltd. patch.
[mirror_edk2.git] / ArmPlatformPkg / PrePeiCore / 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 # This program and the accompanying materials
6 # are licensed and made available under the terms and conditions of the BSD License
7 # which accompanies this distribution. The full text of the license may be found at
8 # http://opensource.org/licenses/bsd-license.php.
9 #
10 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 #
13 #------------------------------------------------------------------------------
14
15 .text
16 .align 3
17
18 GCC_ASM_EXPORT(SecSwitchStack)
19
20
21
22 #/**
23 # This allows the caller to switch the stack and return
24 #
25 # @param StackDelta Signed amount by which to modify the stack pointer
26 #
27 # @return Nothing. Goes to the Entry Point passing in the new parameters
28 #
29 #**/
30 #VOID
31 #EFIAPI
32 #SecSwitchStack (
33 # VOID *StackDelta
34 # )#
35 #
36 ASM_PFX(SecSwitchStack):
37 mov R1, R13
38 add R1, R0, R1
39 mov R13, R1
40 bx LR
41
42
43