]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Library/BaseLib/Ia32/ReadDr7.c
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / ReadDr7.c
CommitLineData
e1f414b6 1/** @file\r
2 AsmReadDr7 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 7 (DR7).\r
11\r
12 Reads and returns the current value of DR7. 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 7 (DR7).\r
17\r
18**/\r
e1f414b6 19UINTN\r
20EFIAPI\r
21AsmReadDr7 (\r
22 VOID\r
23 )\r
24{\r
25 __asm {\r
26 mov eax, dr7\r
27 }\r
28}\r