]>
Commit | Line | Data |
---|---|---|
e1f414b6 | 1 | /** @file\r |
2 | AsmReadDr6 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 |
e1f414b6 | 6 | \r |
7 | **/\r | |
8 | \r | |
1efcc4ae | 9 | \r |
f734a10a | 10 | \r |
e1f414b6 | 11 | \r |
42eedea9 | 12 | /**\r |
13 | Reads the current value of Debug Register 6 (DR6).\r | |
14 | \r | |
15 | Reads and returns the current value of DR6. This function is only available\r | |
030cd1a2 | 16 | on IA-32 and x64. This returns a 32-bit value on IA-32 and a 64-bit value on\r |
17 | x64.\r | |
42eedea9 | 18 | \r |
19 | @return The value of Debug Register 6 (DR6).\r | |
20 | \r | |
21 | **/\r | |
e1f414b6 | 22 | UINTN\r |
23 | EFIAPI\r | |
24 | AsmReadDr6 (\r | |
25 | VOID\r | |
26 | )\r | |
27 | {\r | |
28 | __asm {\r | |
29 | mov eax, dr6\r | |
30 | }\r | |
31 | }\r | |
32 | \r |