]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/PrePeiCore/AArch64/SwitchStack.S
BaseTools/Capsule: Do not support -o with --dump-info
[mirror_edk2.git] / ArmPlatformPkg / PrePeiCore / AArch64 / 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 # Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>
6 #
7 # This program and the accompanying materials
8 # are licensed and made available under the terms and conditions of the BSD License
9 # which accompanies this distribution. The full text of the license may be found at
10 # http://opensource.org/licenses/bsd-license.php.
11 #
12 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 #
15 #------------------------------------------------------------------------------
16
17 #include <AsmMacroIoLibV8.h>
18
19 #/**
20 # This allows the caller to switch the stack and return
21 #
22 # @param StackDelta Signed amount by which to modify the stack pointer
23 #
24 # @return Nothing. Goes to the Entry Point passing in the new parameters
25 #
26 #**/
27 #VOID
28 #EFIAPI
29 #SecSwitchStack (
30 # VOID *StackDelta
31 # )#
32 #
33 ASM_FUNC(SecSwitchStack)
34 mov x1, sp
35 add x1, x0, x1
36 mov sp, x1
37 ret
38