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