]>
Commit | Line | Data |
---|---|---|
f1baef62 | 1 | /** @file\r |
2 | CpuBreakpoint function.\r | |
3 | \r | |
bb817c56 | 4 | Copyright (c) 2006 - 2008, 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 | 13 | unsigned __int64 __readmsr (int register);\r |
14 | \r | |
15 | #pragma intrinsic(__readmsr)\r | |
16 | \r | |
42eedea9 | 17 | /**\r |
18 | Read data to MSR.\r | |
19 | \r | |
20 | @param Index Register index of MSR.\r | |
21 | \r | |
22 | @return Value read from MSR.\r | |
23 | \r | |
24 | **/\r | |
f1baef62 | 25 | UINT64\r |
26 | EFIAPI\r | |
27 | AsmReadMsr64 (\r | |
28 | IN UINT32 Index\r | |
29 | )\r | |
30 | {\r | |
31 | return __readmsr (Index);\r | |
32 | }\r | |
33 | \r |