]>
Commit | Line | Data |
---|---|---|
878ddf1f | 1 | //++\r |
2 | // Copyright (c) 2004, Intel Corporation \r | |
3 | // All rights reserved. This program and the accompanying materials \r | |
4 | // are licensed and made available under the terms and conditions of the BSD License \r | |
5 | // which accompanies this distribution. The full text of the license may be found at \r | |
6 | // http://opensource.org/licenses/bsd-license.php \r | |
7 | // \r | |
8 | // THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
9 | // WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
10 | // \r | |
11 | // Module Name:\r | |
12 | //\r | |
13 | // PerformancePrimitives.s\r | |
14 | //\r | |
15 | // Abstract:\r | |
16 | //\r | |
17 | //\r | |
18 | // Revision History:\r | |
19 | //\r | |
20 | //--\r | |
21 | \r | |
22 | .file "PerformancePrimitives.s"\r | |
23 | \r | |
24 | #include "IpfMacro.i"\r | |
25 | \r | |
26 | //-----------------------------------------------------------------------------\r | |
27 | //++\r | |
28 | // GetTimerValue\r | |
29 | //\r | |
30 | // Implementation of CPU-based time service\r | |
31 | //\r | |
32 | // On Entry :\r | |
33 | // EFI_STATUS\r | |
34 | // GetTimerValue (\r | |
35 | // OUT UINT64 *TimerValue\r | |
36 | // )\r | |
37 | //\r | |
38 | // Return Value: \r | |
39 | // r8 = Status\r | |
40 | // r9 = 0\r | |
41 | // r10 = 0\r | |
42 | // r11 = 0\r | |
43 | // \r | |
44 | // As per static calling conventions. \r | |
45 | // \r | |
46 | //--\r | |
47 | //---------------------------------------------------------------------------\r | |
48 | PROCEDURE_ENTRY (GetTimerValue)\r | |
49 | \r | |
50 | NESTED_SETUP (1,8,0,0)\r | |
51 | mov r8 = ar.itc;;\r | |
52 | st8 [r32]= r8\r | |
53 | mov r8 = r0\r | |
54 | mov r9 = r0\r | |
55 | mov r10 = r0\r | |
56 | mov r11 = r0\r | |
57 | NESTED_RETURN\r | |
58 | \r | |
59 | PROCEDURE_EXIT (GetTimerValue)\r | |
60 | //---------------------------------------------------------------------------\r | |
61 | \r |