]>
Commit | Line | Data |
---|---|---|
8facd18f | 1 | /// @file\r |
2 | /// IPF specific AsmReadKr7() and AsmWriteKr7()\r | |
3 | ///\r | |
bb817c56 HT |
4 | /// Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>\r |
5 | /// This program and the accompanying materials\r | |
8facd18f | 6 | /// are licensed and made available under the terms and conditions of the BSD License\r |
7 | /// which accompanies this distribution. The full text of the license may be found at\r | |
8 | /// http://opensource.org/licenses/bsd-license.php\r | |
9 | ///\r | |
10 | /// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | /// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | ///\r | |
13 | /// Module Name: AccessKr7.s\r | |
14 | ///\r | |
15 | ///\r | |
16 | \r | |
17 | //---------------------------------------------------------------------------------\r | |
18 | //++\r | |
19 | // AsmReadKr7\r | |
20 | //\r | |
21 | // This routine is used to get KR7.\r | |
22 | //\r | |
23 | // Arguments :\r | |
24 | //\r | |
25 | // On Entry : None.\r | |
26 | //\r | |
27 | // Return Value: The value store in KR7.\r | |
28 | //\r | |
29 | //--\r | |
30 | //----------------------------------------------------------------------------------\r | |
31 | .text\r | |
32 | .type AsmReadKr7, @function\r | |
33 | .proc AsmReadKr7\r | |
34 | \r | |
35 | AsmReadKr7::\r | |
36 | mov r8 = ar.k7;;\r | |
37 | br.ret.dpnt b0;;\r | |
38 | .endp AsmReadKr7\r | |
39 | \r | |
40 | //---------------------------------------------------------------------------------\r | |
41 | //++\r | |
42 | // AsmWriteKr7\r | |
43 | //\r | |
44 | // This routine is used to write KR7.\r | |
45 | //\r | |
46 | // Arguments :\r | |
47 | //\r | |
48 | // On Entry : None.\r | |
49 | //\r | |
50 | // Return Value: The value written to the KR7.\r | |
51 | //\r | |
52 | //--\r | |
53 | //----------------------------------------------------------------------------------\r | |
54 | .text\r | |
55 | .type AsmWriteKr7, @function\r | |
56 | .proc AsmWriteKr7\r | |
57 | .regstk 1, 3, 0, 0\r | |
58 | \r | |
59 | AsmWriteKr7::\r | |
60 | mov ar.k7 = in0\r | |
61 | mov r8 = in0;;\r | |
62 | br.ret.dpnt b0;;\r | |
63 | .endp AsmWriteKr7\r |