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: AccessGcr.s
13 /// IPF specific Global Control Registers accessing functions
16 //---------------------------------------------------------------------------------
20 // This routine is used to Read the value of Default Control Register (DCR).
26 // Return Value: The current value of DCR.
29 //----------------------------------------------------------------------------------
31 .type AsmReadDcr, @function
39 //---------------------------------------------------------------------------------
43 // This routine is used to write the value to Default Control Register (DCR).
47 // On Entry : The value need to be written to DCR
49 // Return Value: The value written to DCR.
52 //----------------------------------------------------------------------------------
54 .type AsmWriteDcr, @function
67 //---------------------------------------------------------------------------------
71 // This routine is used to Read the value of Interval Timer Counter Register (ITC).
77 // Return Value: The current value of ITC.
80 //----------------------------------------------------------------------------------
82 .type AsmReadItc, @function
90 //---------------------------------------------------------------------------------
94 // This routine is used to write the value to Interval Timer Counter Register (ITC).
98 // On Entry : The value need to be written to the ITC
100 // Return Value: The value written to the ITC.
103 //----------------------------------------------------------------------------------
105 .type AsmWriteItc, @function
116 //---------------------------------------------------------------------------------
120 // This routine is used to Read the value of Interval Timer Match Register (ITM).
126 // Return Value: The current value of ITM.
129 //----------------------------------------------------------------------------------
131 .type AsmReadItm, @function
139 //---------------------------------------------------------------------------------
143 // This routine is used to write the value to Interval Timer Match Register (ITM).
147 // On Entry : The value need to be written to ITM
149 // Return Value: The value written to ITM.
152 //----------------------------------------------------------------------------------
154 .type AsmWriteItm, @function
166 //---------------------------------------------------------------------------------
170 // This routine is used to read the value of Interruption Vector Address Register (IVA).
176 // Return Value: The current value of IVA.
179 //----------------------------------------------------------------------------------
181 .type AsmReadIva, @function
189 //---------------------------------------------------------------------------------
193 // This routine is used to write the value to Interruption Vector Address Register (IVA).
197 // On Entry : The value need to be written to IVA
199 // Return Value: The value written to IVA.
202 //----------------------------------------------------------------------------------
204 .type AsmWriteIva, @function
215 //---------------------------------------------------------------------------------
219 // This routine is used to read the value of Page Table Address Register (PTA).
225 // Return Value: The current value of PTA.
228 //----------------------------------------------------------------------------------
230 .type AsmReadPta, @function
238 //---------------------------------------------------------------------------------
242 // This routine is used to write the value to Page Table Address Register (PTA)).
246 // On Entry : The value need to be written to PTA
248 // Return Value: The value written to PTA.
251 //----------------------------------------------------------------------------------
253 .type AsmWritePta, @function