]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ipf/SwitchStack.s
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / BaseLib / Ipf / SwitchStack.s
CommitLineData
2c7e5c2f
HT
1/// Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>\r
2/// This program and the accompanying materials \r
3eb9473e 3/// are licensed and made available under the terms and conditions of the BSD License \r
4/// which accompanies this distribution. The full text of the license may be found at \r
5/// http://opensource.org/licenses/bsd-license.php \r
6/// \r
7/// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
8/// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
9///\r
10/// Module Name:\r
11///\r
12/// SwitchStack.s\r
13///\r
14/// Abstract:\r
15///\r
16///\r
17\r
18.auto\r
19.text\r
20\r
21.proc AsmSwitchStackAndBackingStore\r
22.type AsmSwitchStackAndBackingStore, @function\r
23.regstk 5, 0, 0, 0\r
24AsmSwitchStackAndBackingStore::\r
25 mov r14 = ar.rsc\r
26 movl r2 = ~((((1 << 14) - 1) << 16) | 3)\r
27\r
28 mov r17 = in1\r
29 mov r18 = in2\r
30 and r2 = r14, r2\r
31\r
32 mov ar.rsc = r2\r
33 mov sp = in3\r
34 mov r19 = in4\r
35\r
36 ld8.nt1 r16 = [in0], 8\r
37 ld8.nta gp = [in0]\r
38 mov r3 = -1\r
39\r
40 loadrs\r
41 mov ar.bspstore = r19\r
42 mov b7 = r16\r
43\r
44 alloc r2 = ar.pfs, 0, 0, 2, 0\r
45 mov out0 = r17\r
46 mov out1 = r18\r
47\r
48 mov ar.rnat = r3\r
49 mov ar.rsc = r14\r
50 br.call.sptk.many b0 = b7\r
51.endp AsmSwitchStackAndBackingStore\r