]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/X64/WriteMsr64.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>
17 unsigned long Register
,
18 unsigned __int64 Value
21 #pragma intrinsic(__writemsr)
26 @param Index The register index of MSR.
27 @param Value Data wants to be written.
29 @return Value written to MSR.
41 Flag
= FilterBeforeMsrWrite (Index
, &Value
);
43 __writemsr (Index
, Value
);
46 FilterAfterMsrWrite (Index
, &Value
);