2 /// IPF specific Machine Specific Registers accessing functions.
4 /// Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
5 /// 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.
17 //---------------------------------------------------------------------------------
21 // Reads the current value of a Machine Specific Register (MSR).
23 // Reads and returns the current value of the Machine Specific Register specified by Index. No
24 // parameter checking is performed on Index, and if the Index value is beyond the implemented MSR
25 // register range, a Reserved Register/Field fault may occur. The caller must either guarantee that
26 // Index is valid, or the caller must set up fault handlers to catch the faults. This function is
27 // only available on IPF.
31 // On Entry : The 8-bit Machine Specific Register index to read.
33 // Return Value: The current value of the Machine Specific Register specified by Index.
36 //----------------------------------------------------------------------------------
38 .type AsmReadMsr, @function
47 //---------------------------------------------------------------------------------
51 // Writes the current value of a Machine Specific Register (MSR).
53 // Writes Value to the Machine Specific Register specified by Index. Value is returned. No
54 // parameter checking is performed on Index, and if the Index value is beyond the implemented MSR
55 // register range, a Reserved Register/Field fault may occur. The caller must either guarantee that
56 // Index is valid, or the caller must set up fault handlers to catch the faults. This function is
57 // only available on IPF.
61 // On Entry : The 8-bit Machine Specific Register index to write.
62 // The 64-bit value to write to the Machine Specific Register.
64 // Return Value: The 64-bit value to write to the Machine Specific Register.
67 //----------------------------------------------------------------------------------
69 .type AsmWriteMsr, @function