]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/PrePeiCore/Arm/SwitchStack.S
BaseTools/Capsule: Do not support -o with --dump-info
[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 # 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 #include <AsmMacroIoLib.h>
16
17 #/**
18 # This allows the caller to switch the stack and return
19 #
20 # @param StackDelta Signed amount by which to modify the stack pointer
21 #
22 # @return Nothing. Goes to the Entry Point passing in the new parameters
23 #
24 #**/
25 #VOID
26 #EFIAPI
27 #SecSwitchStack (
28 # VOID *StackDelta
29 # )#
30 #
31 ASM_FUNC(SecSwitchStack)
32 mov R1, R13
33 add R1, R0, R1
34 mov R13, R1
35 bx LR
36
37
38