]>
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>
20 #pragma intrinsic(__readmsr)
25 @param Index Register index of MSR.
27 @return Value read from MSR.
39 Flag
= FilterBeforeMsrRead (Index
, &Value
);
41 Value
= __readmsr (Index
);
44 FilterAfterMsrRead (Index
, &Value
);