1 /// Copyright (c) 2006, 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
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.
10 /// Module Name: AccessKr.s
13 /// IPF specific AsmReadKrX() and AsmWriteKrX functions, 'X' is from '0' to '7'
16 //---------------------------------------------------------------------------------
20 // This routine is used to get KR0.
26 // Return Value: The value store in KR0.
29 //----------------------------------------------------------------------------------
31 .type AsmReadKr0, @function
39 //---------------------------------------------------------------------------------
43 // This routine is used to Write KR0.
49 // Return Value: The value written to the KR0.
52 //----------------------------------------------------------------------------------
55 .type AsmWriteKr0, @function
66 //---------------------------------------------------------------------------------
70 // This routine is used to get KR1.
76 // Return Value: The value store in KR1.
79 //----------------------------------------------------------------------------------
81 .type AsmReadKr1, @function
89 //---------------------------------------------------------------------------------
93 // This routine is used to Write KR1.
99 // Return Value: The value written to the KR1.
102 //----------------------------------------------------------------------------------
104 .type AsmWriteKr1, @function
114 //---------------------------------------------------------------------------------
118 // This routine is used to get KR2.
124 // Return Value: The value store in KR2.
127 //----------------------------------------------------------------------------------
129 .type AsmReadKr2, @function
137 //---------------------------------------------------------------------------------
141 // This routine is used to Write KR2.
147 // Return Value: The value written to the KR2.
150 //----------------------------------------------------------------------------------
152 .type AsmWriteKr2, @function
162 //---------------------------------------------------------------------------------
166 // This routine is used to get KR3.
172 // Return Value: The value store in KR3.
175 //----------------------------------------------------------------------------------
177 .type AsmReadKr3, @function
185 //---------------------------------------------------------------------------------
189 // This routine is used to Write KR3.
195 // Return Value: The value written to the KR3.
198 //----------------------------------------------------------------------------------
200 .type AsmWriteKr3, @function
210 //---------------------------------------------------------------------------------
214 // This routine is used to get KR4.
220 // Return Value: The value store in KR4.
223 //----------------------------------------------------------------------------------
225 .type AsmReadKr4, @function
233 //---------------------------------------------------------------------------------
237 // This routine is used to Write KR4.
243 // Return Value: The value written to the KR4.
246 //----------------------------------------------------------------------------------
248 .type AsmWriteKr4, @function
258 //---------------------------------------------------------------------------------
262 // This routine is used to get KR5.
268 // Return Value: The value store in KR5.
271 //----------------------------------------------------------------------------------
273 .type AsmReadKr5, @function
281 //---------------------------------------------------------------------------------
285 // This routine is used to Write KR5.
291 // Return Value: The value written to the KR5.
294 //----------------------------------------------------------------------------------
296 .type AsmWriteKr5, @function
306 //---------------------------------------------------------------------------------
310 // This routine is used to get KR6.
316 // Return Value: The value store in KR6.
319 //----------------------------------------------------------------------------------
321 .type AsmReadKr6, @function
329 //---------------------------------------------------------------------------------
333 // This routine is used to write KR6.
339 // Return Value: The value written to the KR6.
342 //----------------------------------------------------------------------------------
344 .type AsmWriteKr6, @function
354 //---------------------------------------------------------------------------------
358 // This routine is used to get KR7.
364 // Return Value: The value store in KR7.
367 //----------------------------------------------------------------------------------
369 .type AsmReadKr7, @function
377 //---------------------------------------------------------------------------------
381 // This routine is used to write KR7.
387 // Return Value: The value written to the KR7.
390 //----------------------------------------------------------------------------------
392 .type AsmWriteKr7, @function