]> git.proxmox.com Git - mirror_edk2.git/blob - ArmRealViewEbPkg/SecForPei/Arm/SwitchStack.asm
Remove ArmEbPkg and replace with ArmRealViewEbPkg. Ported ArmRealViewEbPkg to have...
[mirror_edk2.git] / ArmRealViewEbPkg / SecForPei / Arm / SwitchStack.asm
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 EXPORT SecSwitchStack
16
17 AREA Switch_Stack, CODE, READONLY
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 SecSwitchStack
34 MOV R1, SP
35 ADD R1, R0, R1
36 MOV SP, R1
37 BX LR
38 END