]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/X64/ReadMsr64.c
2 CpuBreakpoint function.
4 Copyright (c) 2006 - 2021, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
10 Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics.
13 #include <Library/RegisterFilterLib.h>
15 unsigned __int64
__readmsr (int register);
17 #pragma intrinsic(__readmsr)
22 @param Index Register index of MSR.
24 @return Value read from MSR.
36 Flag
= FilterBeforeMsrRead (Index
, &Value
);
38 Value
= __readmsr (Index
);
40 FilterAfterMsrRead (Index
, &Value
);