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: AccessPmr.s
13 /// IPF specific Performance Monitor Configuration/Data Registers accessing functions
16 //---------------------------------------------------------------------------------
20 // This routine is used to Reads the current value of Performance Monitor Configuration Register (PMC).
24 // On Entry : The 8-bit PMC index.
26 // Return Value: The current value of PMC by Index.
29 //----------------------------------------------------------------------------------
31 .type AsmReadPmc, @function
42 //---------------------------------------------------------------------------------
46 // This routine is used to write the current value to a Performance Monitor Configuration Register (PMC).
50 // On Entry : The 8-bit PMC index.
51 // The value should be written to PMC
53 // Return Value: The value written to PMC.
56 //----------------------------------------------------------------------------------
58 .type AsmWritePmc, @function
71 //---------------------------------------------------------------------------------
75 // This routine is used to Reads the current value of Performance Monitor Data Register (PMD).
79 // On Entry : The 8-bit PMD index.
81 // Return Value: The current value of PMD by Index.
84 //----------------------------------------------------------------------------------
86 .type AsmReadPmd, @function
97 //---------------------------------------------------------------------------------
101 // This routine is used to write the current value to Performance Monitor Data Register (PMD).
105 // On Entry : The 8-bit PMD index.
106 // The value should be written to PMD
108 // Return Value: The value written to PMD.
111 //----------------------------------------------------------------------------------
113 .type AsmWritePmd, @function