]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ipf/ReadAr.s
1. Removal PalCallStatic API
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ipf / ReadAr.s
1 /// @file
2 /// IPF specific application register reading functions
3 ///
4 /// Copyright (c) 2008, Intel Corporation
5 /// All rights reserved. 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 ///
14 ///
15
16
17
18 .text
19 .type AsmReadApplicationRegisterK0, @function
20 .proc AsmReadApplicationRegisterK0
21 //
22 // Reads appplication register K0.
23 //
24 // This is a worker function for AsmReadApplicationRegister()
25 // when its parameter Index is IPF_APPLICATION_REGISTER_K0
26 //
27 // @return The 64-bit application register K0.
28 //
29 AsmReadApplicationRegisterK0::
30 mov r8 = ar.k0;;
31 br.ret.dpnt b0;;
32 .endp AsmReadApplicationRegisterK0
33
34
35
36 .text
37 .type AsmReadApplicationRegisterK1, @function
38 .proc AsmReadApplicationRegisterK1
39 //
40 // Reads appplication register K1.
41 //
42 // This is a worker function for AsmReadApplicationRegister()
43 // when its parameter Index is IPF_APPLICATION_REGISTER_K1
44 //
45 // @return The 64-bit application register K1.
46 //
47 AsmReadApplicationRegisterK1::
48 mov r8 = ar.k1;;
49 br.ret.dpnt b0;;
50 .endp AsmReadApplicationRegisterK1
51
52
53
54 .text
55 .type AsmReadApplicationRegisterK2, @function
56 .proc AsmReadApplicationRegisterK2
57 //
58 // Reads appplication register K2.
59 //
60 // This is a worker function for AsmReadApplicationRegister()
61 // when its parameter Index is IPF_APPLICATION_REGISTER_K2
62 //
63 // @return The 64-bit application register K2.
64 //
65 AsmReadApplicationRegisterK2::
66 mov r8 = ar.k2;;
67 br.ret.dpnt b0;;
68 .endp AsmReadApplicationRegisterK2
69
70
71
72 .text
73 .type AsmReadApplicationRegisterK3, @function
74 .proc AsmReadApplicationRegisterK3
75 //
76 // Reads appplication register K3.
77 //
78 // This is a worker function for AsmReadApplicationRegister()
79 // when its parameter Index is IPF_APPLICATION_REGISTER_K3
80 //
81 // @return The 64-bit application register K3.
82 //
83 AsmReadApplicationRegisterK3::
84 mov r8 = ar.k3;;
85 br.ret.dpnt b0;;
86 .endp AsmReadApplicationRegisterK3
87
88
89
90 .text
91 .type AsmReadApplicationRegisterK4, @function
92 .proc AsmReadApplicationRegisterK4
93 //
94 // Reads appplication register K4.
95 //
96 // This is a worker function for AsmReadApplicationRegister()
97 // when its parameter Index is IPF_APPLICATION_REGISTER_K4
98 //
99 // @return The 64-bit application register K4.
100 //
101 AsmReadApplicationRegisterK4::
102 mov r8 = ar.k4;;
103 br.ret.dpnt b0;;
104 .endp AsmReadApplicationRegisterK4
105
106
107
108 .text
109 .type AsmReadApplicationRegisterK5, @function
110 .proc AsmReadApplicationRegisterK5
111 //
112 // Reads appplication register K5.
113 //
114 // This is a worker function for AsmReadApplicationRegister()
115 // when its parameter Index is IPF_APPLICATION_REGISTER_K5
116 //
117 // @return The 64-bit application register K5.
118 //
119 AsmReadApplicationRegisterK5::
120 mov r8 = ar.k5;;
121 br.ret.dpnt b0;;
122 .endp AsmReadApplicationRegisterK5
123
124
125
126 .text
127 .type AsmReadApplicationRegisterK6, @function
128 .proc AsmReadApplicationRegisterK6
129 //
130 // Reads appplication register K6.
131 //
132 // This is a worker function for AsmReadApplicationRegister()
133 // when its parameter Index is IPF_APPLICATION_REGISTER_K6
134 //
135 // @return The 64-bit application register K6.
136 //
137 AsmReadApplicationRegisterK6::
138 mov r8 = ar.k6;;
139 br.ret.dpnt b0;;
140 .endp AsmReadApplicationRegisterK6
141
142
143
144 .text
145 .type AsmReadApplicationRegisterK7, @function
146 .proc AsmReadApplicationRegisterK7
147 //
148 // Reads appplication register K7.
149 //
150 // This is a worker function for AsmReadApplicationRegister()
151 // when its parameter Index is IPF_APPLICATION_REGISTER_K7
152 //
153 // @return The 64-bit application register K7.
154 //
155 AsmReadApplicationRegisterK7::
156 mov r8 = ar.k7;;
157 br.ret.dpnt b0;;
158 .endp AsmReadApplicationRegisterK7
159
160
161
162 .text
163 .type AsmReadApplicationRegisterRsc, @function
164 .proc AsmReadApplicationRegisterRsc
165 //
166 // Reads appplication register RSC.
167 //
168 // This is a worker function for AsmReadApplicationRegister()
169 // when its parameter Index is IPF_APPLICATION_REGISTER_RSC
170 //
171 // @return The 64-bit application register RSC.
172 //
173 AsmReadApplicationRegisterRsc::
174 mov r8 = ar.rsc;;
175 br.ret.dpnt b0;;
176 .endp AsmReadApplicationRegisterRsc
177
178
179
180 .text
181 .type AsmReadApplicationRegisterBsp, @function
182 .proc AsmReadApplicationRegisterBsp
183 //
184 // Reads appplication register BSP.
185 //
186 // This is a worker function for AsmReadApplicationRegister()
187 // when its parameter Index is IPF_APPLICATION_REGISTER_BSP
188 //
189 // @return The 64-bit application register BSP.
190 //
191 AsmReadApplicationRegisterBsp::
192 mov r8 = ar.bsp;;
193 br.ret.dpnt b0;;
194 .endp AsmReadApplicationRegisterBsp
195
196
197
198 .text
199 .type AsmReadApplicationRegisterBspstore, @function
200 .proc AsmReadApplicationRegisterBspstore
201 //
202 // Reads appplication register BSPSTORE.
203 //
204 // This is a worker function for AsmReadApplicationRegister()
205 // when its parameter Index is IPF_APPLICATION_REGISTER_BSPSTORE
206 //
207 // @return The 64-bit application register BSPSTORE.
208 //
209 AsmReadApplicationRegisterBspstore::
210 mov r8 = ar.bspstore;;
211 br.ret.dpnt b0;;
212 .endp AsmReadApplicationRegisterBspstore
213
214
215
216 .text
217 .type AsmReadApplicationRegisterRnat, @function
218 .proc AsmReadApplicationRegisterRnat
219 //
220 // Reads appplication register RNAT.
221 //
222 // This is a worker function for AsmReadApplicationRegister()
223 // when its parameter Index is IPF_APPLICATION_REGISTER_RNAT
224 //
225 // @return The 64-bit application register RNAT.
226 //
227 AsmReadApplicationRegisterRnat::
228 mov r8 = ar.rnat;;
229 br.ret.dpnt b0;;
230 .endp AsmReadApplicationRegisterRnat
231
232
233
234 .text
235 .type AsmReadApplicationRegisterFcr, @function
236 .proc AsmReadApplicationRegisterFcr
237 //
238 // Reads appplication register FCR.
239 //
240 // This is a worker function for AsmReadApplicationRegister()
241 // when its parameter Index is IPF_APPLICATION_REGISTER_FCR
242 //
243 // @return The 64-bit application register FCR.
244 //
245 AsmReadApplicationRegisterFcr::
246 mov r8 = ar.fcr;;
247 br.ret.dpnt b0;;
248 .endp AsmReadApplicationRegisterFcr
249
250
251
252 .text
253 .type AsmReadApplicationRegisterEflag, @function
254 .proc AsmReadApplicationRegisterEflag
255 //
256 // Reads appplication register EFLAG.
257 //
258 // This is a worker function for AsmReadApplicationRegister()
259 // when its parameter Index is IPF_APPLICATION_REGISTER_EFLAG
260 //
261 // @return The 64-bit application register EFLAG.
262 //
263 AsmReadApplicationRegisterEflag::
264 mov r8 = ar.eflag;;
265 br.ret.dpnt b0;;
266 .endp AsmReadApplicationRegisterEflag
267
268
269
270 .text
271 .type AsmReadApplicationRegisterCsd, @function
272 .proc AsmReadApplicationRegisterCsd
273 //
274 // Reads appplication register CSD.
275 //
276 // This is a worker function for AsmReadApplicationRegister()
277 // when its parameter Index is IPF_APPLICATION_REGISTER_CSD
278 //
279 // @return The 64-bit application register CSD.
280 //
281 AsmReadApplicationRegisterCsd::
282 mov r8 = ar.csd;;
283 br.ret.dpnt b0;;
284 .endp AsmReadApplicationRegisterCsd
285
286
287
288 .text
289 .type AsmReadApplicationRegisterSsd, @function
290 .proc AsmReadApplicationRegisterSsd
291 //
292 // Reads appplication register SSD.
293 //
294 // This is a worker function for AsmReadApplicationRegister()
295 // when its parameter Index is IPF_APPLICATION_REGISTER_SSD
296 //
297 // @return The 64-bit application register SSD.
298 //
299 AsmReadApplicationRegisterSsd::
300 mov r8 = ar.ssd;;
301 br.ret.dpnt b0;;
302 .endp AsmReadApplicationRegisterSsd
303
304
305
306 .text
307 .type AsmReadApplicationRegisterCflg, @function
308 .proc AsmReadApplicationRegisterCflg
309 //
310 // Reads appplication register CFLG.
311 //
312 // This is a worker function for AsmReadApplicationRegister()
313 // when its parameter Index is IPF_APPLICATION_REGISTER_CFLG
314 //
315 // @return The 64-bit application register CFLG.
316 //
317 AsmReadApplicationRegisterCflg::
318 mov r8 = ar.cflg;;
319 br.ret.dpnt b0;;
320 .endp AsmReadApplicationRegisterCflg
321
322
323
324 .text
325 .type AsmReadApplicationRegisterFsr, @function
326 .proc AsmReadApplicationRegisterFsr
327 //
328 // Reads appplication register FSR.
329 //
330 // This is a worker function for AsmReadApplicationRegister()
331 // when its parameter Index is IPF_APPLICATION_REGISTER_FSR
332 //
333 // @return The 64-bit application register FSR.
334 //
335 AsmReadApplicationRegisterFsr::
336 mov r8 = ar.fsr;;
337 br.ret.dpnt b0;;
338 .endp AsmReadApplicationRegisterFsr
339
340
341
342 .text
343 .type AsmReadApplicationRegisterFir, @function
344 .proc AsmReadApplicationRegisterFir
345 //
346 // Reads appplication register FIR.
347 //
348 // This is a worker function for AsmReadApplicationRegister()
349 // when its parameter Index is IPF_APPLICATION_REGISTER_FIR
350 //
351 // @return The 64-bit application register FIR.
352 //
353 AsmReadApplicationRegisterFir::
354 mov r8 = ar.fir;;
355 br.ret.dpnt b0;;
356 .endp AsmReadApplicationRegisterFir
357
358
359
360 .text
361 .type AsmReadApplicationRegisterFdr, @function
362 .proc AsmReadApplicationRegisterFdr
363 //
364 // Reads appplication register FDR.
365 //
366 // This is a worker function for AsmReadApplicationRegister()
367 // when its parameter Index is IPF_APPLICATION_REGISTER_FDR
368 //
369 // @return The 64-bit application register FDR.
370 //
371 AsmReadApplicationRegisterFdr::
372 mov r8 = ar.fdr;;
373 br.ret.dpnt b0;;
374 .endp AsmReadApplicationRegisterFdr
375
376
377
378 .text
379 .type AsmReadApplicationRegisterCcv, @function
380 .proc AsmReadApplicationRegisterCcv
381 //
382 // Reads appplication register CCV.
383 //
384 // This is a worker function for AsmReadApplicationRegister()
385 // when its parameter Index is IPF_APPLICATION_REGISTER_CCV
386 //
387 // @return The 64-bit application register CCV.
388 //
389 AsmReadApplicationRegisterCcv::
390 mov r8 = ar.ccv;;
391 br.ret.dpnt b0;;
392 .endp AsmReadApplicationRegisterCcv
393
394
395
396 .text
397 .type AsmReadApplicationRegisterUnat, @function
398 .proc AsmReadApplicationRegisterUnat
399 //
400 // Reads appplication register UNAT.
401 //
402 // This is a worker function for AsmReadApplicationRegister()
403 // when its parameter Index is IPF_APPLICATION_REGISTER_UNAT
404 //
405 // @return The 64-bit application register UNAT.
406 //
407 AsmReadApplicationRegisterUnat::
408 mov r8 = ar.unat;;
409 br.ret.dpnt b0;;
410 .endp AsmReadApplicationRegisterUnat
411
412
413
414 .text
415 .type AsmReadApplicationRegisterFpsr, @function
416 .proc AsmReadApplicationRegisterFpsr
417 //
418 // Reads appplication register FPSR.
419 //
420 // This is a worker function for AsmReadApplicationRegister()
421 // when its parameter Index is IPF_APPLICATION_REGISTER_FPSR
422 //
423 // @return The 64-bit application register FPSR.
424 //
425 AsmReadApplicationRegisterFpsr::
426 mov r8 = ar.fpsr;;
427 br.ret.dpnt b0;;
428 .endp AsmReadApplicationRegisterFpsr
429
430
431
432 .text
433 .type AsmReadApplicationRegisterItc, @function
434 .proc AsmReadApplicationRegisterItc
435 //
436 // Reads appplication register ITC.
437 //
438 // This is a worker function for AsmReadApplicationRegister()
439 // when its parameter Index is IPF_APPLICATION_REGISTER_ITC
440 //
441 // @return The 64-bit application register ITC.
442 //
443 AsmReadApplicationRegisterItc::
444 mov r8 = ar.itc;;
445 br.ret.dpnt b0;;
446 .endp AsmReadApplicationRegisterItc
447
448
449
450 .text
451 .type AsmReadApplicationRegisterPfs, @function
452 .proc AsmReadApplicationRegisterPfs
453 //
454 // Reads appplication register PFS.
455 //
456 // This is a worker function for AsmReadApplicationRegister()
457 // when its parameter Index is IPF_APPLICATION_REGISTER_PFS
458 //
459 // @return The 64-bit application register PFS.
460 //
461 AsmReadApplicationRegisterPfs::
462 mov r8 = ar.pfs;;
463 br.ret.dpnt b0;;
464 .endp AsmReadApplicationRegisterPfs
465
466
467
468 .text
469 .type AsmReadApplicationRegisterLc, @function
470 .proc AsmReadApplicationRegisterLc
471 //
472 // Reads appplication register LC.
473 //
474 // This is a worker function for AsmReadApplicationRegister()
475 // when its parameter Index is IPF_APPLICATION_REGISTER_LC
476 //
477 // @return The 64-bit application register LC.
478 //
479 AsmReadApplicationRegisterLc::
480 mov r8 = ar.lc;;
481 br.ret.dpnt b0;;
482 .endp AsmReadApplicationRegisterLc
483
484
485
486 .text
487 .type AsmReadApplicationRegisterEc, @function
488 .proc AsmReadApplicationRegisterEc
489 //
490 // Reads appplication register EC.
491 //
492 // This is a worker function for AsmReadApplicationRegister()
493 // when its parameter Index is IPF_APPLICATION_REGISTER_EC
494 //
495 // @return The 64-bit application register EC.
496 //
497 AsmReadApplicationRegisterEc::
498 mov r8 = ar.ec;;
499 br.ret.dpnt b0;;
500 .endp AsmReadApplicationRegisterEc
501