TianoCore EDK2 master
Loading...
Searching...
No Matches
WriteMsr64.c
Go to the documentation of this file.
1
14
15void
17 unsigned long Register,
18 unsigned __int64 Value
19 );
20
21#pragma intrinsic(__writemsr)
22
32UINT64
33EFIAPI
35 IN UINT32 Index,
36 IN UINT64 Value
37 )
38{
39 BOOLEAN Flag;
40
41 Flag = FilterBeforeMsrWrite (Index, &Value);
42 if (Flag) {
43 __writemsr (Index, Value);
44 }
45
46 FilterAfterMsrWrite (Index, &Value);
47
48 return Value;
49}
UINT64 EFIAPI AsmWriteMsr64(IN UINT32 Index, IN UINT64 Value)
Definition: WriteMsr64.c:30
#define IN
Definition: Base.h:279
VOID EFIAPI FilterAfterMsrWrite(IN UINT32 Index, IN UINT64 *Value)
BOOLEAN EFIAPI FilterBeforeMsrWrite(IN UINT32 Index, IN UINT64 *Value)
EFI_STATUS EFIAPI Register(IN EFI_PEI_RSC_HANDLER_CALLBACK Callback)
void __writemsr(unsigned long Register, unsigned __int64 Value)