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