2 /// IPF specific Performance Monitor Configuration/Data Registers accessing functions
4 /// Copyright (c) 2006, 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
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.
13 /// Module Name: AccessPmr.s
17 //---------------------------------------------------------------------------------
21 // This routine is used to Reads the current value of Performance Monitor Configuration Register (PMC).
25 // On Entry : The 8-bit PMC index.
27 // Return Value: The current value of PMC by Index.
30 //----------------------------------------------------------------------------------
32 .type AsmReadPmc, @function
43 //---------------------------------------------------------------------------------
47 // This routine is used to write the current value to a Performance Monitor Configuration Register (PMC).
51 // On Entry : The 8-bit PMC index.
52 // The value should be written to PMC
54 // Return Value: The value written to PMC.
57 //----------------------------------------------------------------------------------
59 .type AsmWritePmc, @function
72 //---------------------------------------------------------------------------------
76 // This routine is used to Reads the current value of Performance Monitor Data Register (PMD).
80 // On Entry : The 8-bit PMD index.
82 // Return Value: The current value of PMD by Index.
85 //----------------------------------------------------------------------------------
87 .type AsmReadPmd, @function
98 //---------------------------------------------------------------------------------
102 // This routine is used to write the current value to Performance Monitor Data Register (PMD).
106 // On Entry : The 8-bit PMD index.
107 // The value should be written to PMD
109 // Return Value: The value written to PMD.
112 //----------------------------------------------------------------------------------
114 .type AsmWritePmd, @function