]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/PrePeiCore/Arm/SwitchStack.S
ARM Packages: Removed trailing spaces
[mirror_edk2.git] / ArmPlatformPkg / PrePeiCore / Arm / SwitchStack.S
CommitLineData
3402aac7 1#------------------------------------------------------------------------------\r
1d5d0ae9 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
3402aac7 14\r
1d5d0ae9 15.text\r
16.align 3\r
17\r
18GCC_ASM_EXPORT(SecSwitchStack)\r
19\r
20\r
3402aac7 21\r
1d5d0ae9 22#/**\r
23# This allows the caller to switch the stack and return\r
24#\r
25# @param StackDelta Signed amount by which to modify the stack pointer\r
26#\r
27# @return Nothing. Goes to the Entry Point passing in the new parameters\r
28#\r
29#**/\r
30#VOID\r
31#EFIAPI\r
32#SecSwitchStack (\r
33# VOID *StackDelta\r
34# )#\r
35#\r
3402aac7 36ASM_PFX(SecSwitchStack):\r
1d5d0ae9 37 mov R1, R13\r
38 add R1, R0, R1\r
39 mov R13, R1\r
40 bx LR\r
3402aac7
RC
41\r
42\r
43\r