]> git.proxmox.com Git - mirror_edk2.git/blame - ArmRealViewEbPkg/SecForPei/Arm/SwitchStack.asm
Remove ArmEbPkg and replace with ArmRealViewEbPkg. Ported ArmRealViewEbPkg to have...
[mirror_edk2.git] / ArmRealViewEbPkg / SecForPei / Arm / SwitchStack.asm
CommitLineData
afdfe8f0 1;------------------------------------------------------------------------------ \r
2;\r
3; Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r
4; Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
5; This program and the accompanying materials\r
6; are licensed and made available under the terms and conditions of the BSD License\r
7; which accompanies this distribution. The full text of the license may be found at\r
8; http://opensource.org/licenses/bsd-license.php.\r
9;\r
10; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12;\r
13;------------------------------------------------------------------------------\r
14 \r
15 EXPORT SecSwitchStack\r
16 \r
17 AREA Switch_Stack, CODE, READONLY\r
18 \r
19;/**\r
20; This allows the caller to switch the stack and return\r
21;\r
22; @param StackDelta Signed amount by which to modify the stack pointer\r
23;\r
24; @return Nothing. Goes to the Entry Point passing in the new parameters\r
25;\r
26;**/\r
27;VOID\r
28;EFIAPI\r
29;SecSwitchStack (\r
30; VOID *StackDelta\r
31; );\r
32;\r
33SecSwitchStack \r
34 MOV R1, SP\r
35 ADD R1, R0, R1\r
36 MOV SP, R1\r
37 BX LR\r
38 END\r