TianoCore EDK2 master
Loading...
Searching...
No Matches
ReadMsr64.c
Go to the documentation of this file.
1
14
15unsigned __int64
17 int register
18 );
19
20#pragma intrinsic(__readmsr)
21
30UINT64
31EFIAPI
33 IN UINT32 Index
34 )
35{
36 UINT64 Value;
37 BOOLEAN Flag;
38
39 Flag = FilterBeforeMsrRead (Index, &Value);
40 if (Flag) {
41 Value = __readmsr (Index);
42 }
43
44 FilterAfterMsrRead (Index, &Value);
45
46 return Value;
47}
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)
unsigned __int64 __readmsr(int register)