]> git.proxmox.com Git - mirror_edk2.git/blob - ArmPlatformPkg/PrePeiCore/Arm/SwitchStack.asm
ArmPkg: Remove RVCT support
[mirror_edk2.git] / ArmPlatformPkg / PrePeiCore / 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 ; SPDX-License-Identifier: BSD-2-Clause-Patent
6 ;
7 ;------------------------------------------------------------------------------
8
9 EXPORT SecSwitchStack
10
11 AREA Switch_Stack, CODE, READONLY
12
13 ;/**
14 ; This allows the caller to switch the stack and return
15 ;
16 ; @param StackDelta Signed amount by which to modify the stack pointer
17 ;
18 ; @return Nothing. Goes to the Entry Point passing in the new parameters
19 ;
20 ;**/
21 ;VOID
22 ;EFIAPI
23 ;SecSwitchStack (
24 ; VOID *StackDelta
25 ; );
26 ;
27 SecSwitchStack
28 MOV R1, SP
29 ADD R1, R0, R1
30 MOV SP, R1
31 BX LR
32 END