]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/X64/WriteMsr64.c
bb030832c497c7358078eec4a28952803754201e
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 void __writemsr (unsigned long Register
, unsigned __int64 Value
);
17 #pragma intrinsic(__writemsr)
22 @param Index The register index of MSR.
23 @param Value Data wants to be written.
25 @return Value written to MSR.
37 Flag
= FilterBeforeMsrWrite (Index
, &Value
);
39 __writemsr (Index
, Value
);
41 FilterAfterMsrWrite (Index
, &Value
);