]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/X64/WriteMsr64.c
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / WriteMsr64.c
CommitLineData
f1baef62 1/** @file\r
2 CpuBreakpoint function.\r
3\r
127010dd 4 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
9344f092 5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
f1baef62 6\r
7**/\r
8\r
42eedea9 9/**\r
10 Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics.\r
11**/\r
7e43ed89 12\r
f1baef62 13void __writemsr (unsigned long Register, unsigned __int64 Value);\r
14\r
15#pragma intrinsic(__writemsr)\r
16\r
42eedea9 17/**\r
18 Write data to MSR.\r
19\r
127010dd 20 @param Index The register index of MSR.\r
42eedea9 21 @param Value Data wants to be written.\r
22\r
23 @return Value written to MSR.\r
24\r
25**/\r
f1baef62 26UINT64\r
27EFIAPI\r
28AsmWriteMsr64 (\r
29 IN UINT32 Index,\r
30 IN UINT64 Value\r
31 )\r
32{\r
33 __writemsr (Index, Value);\r
34 return Value;\r
35}\r
36\r