]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/X64/ReadMsr64.c
Update the copyright notice format
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / ReadMsr64.c
CommitLineData
f1baef62 1/** @file\r
2 CpuBreakpoint function.\r
3\r
bb817c56
HT
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
5 This program and the accompanying materials\r
f1baef62 6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
42eedea9 15/**\r
16 Microsoft Visual Studio 7.1 Function Prototypes for I/O Intrinsics.\r
17**/\r
7e43ed89 18\r
f1baef62 19unsigned __int64 __readmsr (int register);\r
20\r
21#pragma intrinsic(__readmsr)\r
22\r
42eedea9 23/**\r
24 Read data to MSR.\r
25\r
26 @param Index Register index of MSR.\r
27\r
28 @return Value read from MSR.\r
29\r
30**/\r
f1baef62 31UINT64\r
32EFIAPI\r
33AsmReadMsr64 (\r
34 IN UINT32 Index\r
35 )\r
36{\r
37 return __readmsr (Index);\r
38}\r
39\r