]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ipf/longjmp.s
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / BaseLib / Ipf / longjmp.s
1 /// Copyright (c) 2004, Intel Corporation. All rights reserved.<BR>
2 /// This program and the accompanying materials
3 /// are licensed and made available under the terms and conditions of the BSD License
4 /// which accompanies this distribution. The full text of the license may be found at
5 /// http://opensource.org/licenses/bsd-license.php
6 ///
7 /// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
8 /// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
9 ///
10 /// Module Name:
11 ///
12 /// longjmp.s
13 ///
14 /// Abstract:
15 ///
16 ///
17
18 .auto
19 .text
20
21 .proc InternalLongJump
22 .type InternalLongJump, @function
23 .regstk 2, 0, 0, 0
24 InternalLongJump::
25 add r10 = 0x10*20 + 8*14, in0
26 movl r2 = ~((((1 << 14) - 1) << 16) | 3)
27
28 ld8.nt1 r14 = [r10], -8*2 // BSP, skip PFS
29 mov r15 = ar.bspstore // BSPSTORE
30
31 ld8.nt1 r17 = [r10], -8 // UNAT after spill
32 mov r16 = ar.rsc // RSC
33 cmp.leu p6 = r14, r15
34
35 ld8.nt1 r18 = [r10], -8 // UNAT
36 ld8.nt1 r25 = [r10], -8 // b5
37 and r2 = r16, r2
38
39 ldf.fill.nt1 f2 = [in0], 0x10
40 ld8.nt1 r24 = [r10], -8 // b4
41 mov b5 = r25
42
43 mov ar.rsc = r2
44 ld8.nt1 r23 = [r10], -8 // b3
45 mov b4 = r24
46
47 ldf.fill.nt1 f3 = [in0], 0x10
48 mov ar.unat = r17
49 (p6) br.spnt.many _skip_flushrs
50
51 flushrs
52 mov r15 = ar.bsp // New BSPSTORE
53
54 _skip_flushrs:
55 mov r31 = ar.rnat // RNAT
56 loadrs
57
58 ldf.fill.nt1 f4 = [in0], 0x10
59 ld8.nt1 r22 = [r10], -8
60 dep r2 = -1, r14, 3, 6
61
62 ldf.fill.nt1 f5 = [in0], 0x10
63 ld8.nt1 r21 = [r10], -8
64 cmp.ltu p6 = r2, r15
65
66 ld8.nt1 r20 = [r10], -0x10 // skip sp
67 (p6) ld8.nta r31 = [r2]
68 mov b3 = r23
69
70 ldf.fill.nt1 f16 = [in0], 0x10
71 ld8.fill.nt1 r7 = [r10], -8
72 mov b2 = r22
73
74 ldf.fill.nt1 f17 = [in0], 0x10
75 ld8.fill.nt1 r6 = [r10], -8
76 mov b1 = r21
77
78 ldf.fill.nt1 f18 = [in0], 0x10
79 ld8.fill.nt1 r5 = [r10], -8
80 mov b0 = r20
81
82 ldf.fill.nt1 f19 = [in0], 0x10
83 ld8.fill.nt1 r4 = [r10], 8*13
84
85 ldf.fill.nt1 f20 = [in0], 0x10
86 ld8.nt1 r19 = [r10], 0x10 // PFS
87
88 ldf.fill.nt1 f21 = [in0], 0x10
89 ld8.nt1 r26 = [r10], 8 // Predicate
90 mov ar.pfs = r19
91
92 ldf.fill.nt1 f22 = [in0], 0x10
93 ld8.nt1 r27 = [r10], 8 // LC
94 mov pr = r26, -1
95
96 ldf.fill.nt1 f23 = [in0], 0x10
97 ld8.nt1 r28 = [r10], -17*8 - 0x10
98 mov ar.lc = r27
99
100 ldf.fill.nt1 f24 = [in0], 0x10
101 ldf.fill.nt1 f25 = [in0], 0x10
102 mov r8 = in1
103
104 ldf.fill.nt1 f26 = [in0], 0x10
105 ldf.fill.nt1 f31 = [r10], -0x10
106
107 ldf.fill.nt1 f27 = [in0], 0x10
108 ldf.fill.nt1 f30 = [r10], -0x10
109
110 ldf.fill.nt1 f28 = [in0]
111 ldf.fill.nt1 f29 = [r10], 0x10*3 + 8*4
112
113 ld8.fill.nt1 sp = [r10]
114 mov ar.unat = r18
115
116 mov ar.bspstore = r14
117 mov ar.rnat = r31
118
119 invala
120 mov ar.rsc = r16
121 br.ret.sptk b0
122 .endp