]>
Commit | Line | Data |
---|---|---|
2c7e5c2f HT |
1 | // Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r |
2 | // This program and the accompanying materials \r | |
3eb9473e | 3 | // are licensed and made available under the terms and conditions of the BSD License \r |
4 | // which accompanies this distribution. The full text of the license may be found at \r | |
5 | // http://opensource.org/licenses/bsd-license.php \r | |
6 | // \r | |
7 | // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
8 | // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
9 | //\r | |
10 | // Module Name:\r | |
11 | //\r | |
12 | // ReadKr1.s\r | |
13 | //\r | |
14 | // Abstract:\r | |
15 | //\r | |
16 | // Contains assembly code for read Kr1.\r | |
17 | //\r | |
18 | //--\r | |
19 | \r | |
20 | .file "ReadKr1.s"\r | |
21 | \r | |
22 | #include "IpfMacro.i"\r | |
23 | \r | |
24 | //---------------------------------------------------------------------------------\r | |
25 | //++\r | |
26 | // AsmReadKr1\r | |
27 | //\r | |
28 | // This routine is used to get KR1. KR1 is used to store Pei Service Table\r | |
29 | // Pointer in archeture.\r | |
30 | //\r | |
31 | // Arguments : \r | |
32 | //\r | |
33 | // On Entry : None.\r | |
34 | //\r | |
35 | // Return Value: Pei Services Table.\r | |
36 | // \r | |
37 | //--\r | |
38 | //----------------------------------------------------------------------------------\r | |
39 | PROCEDURE_ENTRY (AsmReadKr1)\r | |
40 | \r | |
41 | mov r8 = ar.k1;; // Pei Services Table Pointer\r | |
42 | br.ret.dpnt b0;;\r | |
43 | \r | |
44 | PROCEDURE_EXIT (AsmReadKr1)\r |