]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/Arm/SwitchStack.asm
Update the copyright notice format
[mirror_edk2.git] / MdePkg / Library / BaseLib / Arm / SwitchStack.asm
CommitLineData
ebd04fc2 1;------------------------------------------------------------------------------ \r
2;\r
bb817c56
HT
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
ebd04fc2 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
01a54966 14 \r
ebd04fc2 15 EXPORT InternalSwitchStackAsm\r
16 \r
17 AREA Switch_Stack, CODE, READONLY\r
01a54966 18 \r
ebd04fc2 19;/**\r
20; This allows the caller to switch the stack and goes to the new entry point\r
21;\r
22; @param EntryPoint Pointer to the location to enter\r
23; @param Context Parameter to pass in\r
24; @param Context2 Parameter2 to pass in\r
25; @param NewStack New Location of the stack\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;InternalSwitchStackAsm (\r
33; SWITCH_STACK_ENTRY_POINT EntryPoint,\r
34; VOID *Context,\r
35; VOID *Context2,\r
36; VOID *NewStack\r
37; );\r
38;\r
39InternalSwitchStackAsm\r
40 MOV LR, R0\r
41 MOV SP, R3\r
42 MOV R0, R1\r
43 MOV R1, R2\r
44 BX LR\r
45 END\r