]> git.proxmox.com Git - mirror_edk2.git/blame - ArmPlatformPkg/PrePeiCore/AArch64/SwitchStack.S
ArmPlatformPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / ArmPlatformPkg / PrePeiCore / AArch64 / SwitchStack.S
CommitLineData
1bc83266
HL
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# Portions copyright (c) 2011 - 2013, ARM Ltd. All rights reserved.<BR>\r
6#\r
f4dfad05 7# SPDX-License-Identifier: BSD-2-Clause-Patent\r
1bc83266
HL
8#\r
9#------------------------------------------------------------------------------\r
10\r
13dc7fa5 11#include <AsmMacroIoLibV8.h>\r
1bc83266
HL
12\r
13#/**\r
14# This allows the caller to switch the stack and return\r
15#\r
16# @param StackDelta Signed amount by which to modify the stack pointer\r
17#\r
18# @return Nothing. Goes to the Entry Point passing in the new parameters\r
19#\r
20#**/\r
21#VOID\r
22#EFIAPI\r
23#SecSwitchStack (\r
24# VOID *StackDelta\r
25# )#\r
26#\r
13dc7fa5 27ASM_FUNC(SecSwitchStack)\r
1bc83266
HL
28 mov x1, sp\r
29 add x1, x0, x1\r
30 mov sp, x1\r
31 ret\r
32\r