]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/PrePeiCore/Arm/SwitchStack.S
ArmPlatformPkg: Replace BSD License with BSD+Patent License
[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
f4dfad05 5# SPDX-License-Identifier: BSD-2-Clause-Patent\r
1d5d0ae9 6#\r
7#------------------------------------------------------------------------------\r
3402aac7 8\r
13dc7fa5 9#include <AsmMacroIoLib.h>\r
3402aac7 10\r
1d5d0ae9 11#/**\r
12# This allows the caller to switch the stack and return\r
13#\r
14# @param StackDelta Signed amount by which to modify the stack pointer\r
15#\r
16# @return Nothing. Goes to the Entry Point passing in the new parameters\r
17#\r
18#**/\r
19#VOID\r
20#EFIAPI\r
21#SecSwitchStack (\r
22# VOID *StackDelta\r
23# )#\r
24#\r
13dc7fa5 25ASM_FUNC(SecSwitchStack)\r
1d5d0ae9 26 mov R1, R13\r
27 add R1, R0, R1\r
28 mov R13, R1\r
29 bx LR\r
3402aac7
RC
30\r
31\r
32\r