TianoCore EDK2 master
Loading...
Searching...
No Matches
ReadMsr64.c
Go to the documentation of this file.
1
10
25UINT64
27 IN UINT32 Index
28 )
29{
30 _asm {
31 mov ecx, Index
32 rdmsr
33 }
34}
35
50UINT64
51EFIAPI
53 IN UINT32 Index
54 )
55{
56 UINT64 Value;
57 BOOLEAN Flag;
58
59 Flag = FilterBeforeMsrRead (Index, &Value);
60 if (Flag) {
61 Value = AsmReadMsr64Internal (Index);
62 }
63
64 FilterAfterMsrRead (Index, &Value);
65
66 return Value;
67}
UINT64 AsmReadMsr64Internal(IN UINT32 Index)
Definition: ReadMsr64.c:26
UINT64 EFIAPI AsmReadMsr64(IN UINT32 Index)
Definition: ReadMsr64.c:52
#define IN
Definition: Base.h:279
BOOLEAN EFIAPI FilterBeforeMsrRead(IN UINT32 Index, IN OUT UINT64 *Value)
VOID EFIAPI FilterAfterMsrRead(IN UINT32 Index, IN UINT64 *Value)