]>
Commit | Line | Data |
---|---|---|
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 |
1d5d0ae9 | 9 | EXPORT SecSwitchStack\r |
3402aac7 | 10 | \r |
1d5d0ae9 | 11 | AREA Switch_Stack, CODE, READONLY\r |
3402aac7 | 12 | \r |
1d5d0ae9 | 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 | |
3402aac7 | 27 | SecSwitchStack\r |
1d5d0ae9 | 28 | MOV R1, SP\r |
29 | ADD R1, R0, R1\r | |
30 | MOV SP, R1\r | |
31 | BX LR\r | |
32 | END\r |