]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdePkg/Library/BaseLib/Ia32/WriteDr3.c
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / WriteDr3.c
... / ...
CommitLineData
1/** @file\r
2 AsmWriteDr3 function\r
3\r
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
5 SPDX-License-Identifier: BSD-2-Clause-Patent\r
6\r
7**/\r
8\r
9/**\r
10 Writes a value to Debug Register 3 (DR3).\r
11\r
12 Writes and returns a new value to DR3. This function is only available on\r
13 IA-32 and x64. This writes a 32-bit value on IA-32 and a 64-bit value on x64.\r
14\r
15 @param Value The value to write to Dr3.\r
16\r
17 @return The value written to Debug Register 3 (DR3).\r
18\r
19**/\r
20UINTN\r
21EFIAPI\r
22AsmWriteDr3 (\r
23 IN UINTN Value\r
24 )\r
25{\r
26 _asm {\r
27 mov eax, Value\r
28 mov dr3, eax\r
29 }\r
30}\r