]>
Commit | Line | Data |
---|---|---|
b03d993a JJ |
1 | ;------------------------------------------------------------------------------\r |
2 | ;\r | |
d3febfd9 | 3 | ; Copyright (c) 2006 - 2022, Intel Corporation. All rights reserved.<BR>\r |
9344f092 | 4 | ; SPDX-License-Identifier: BSD-2-Clause-Patent\r |
b03d993a JJ |
5 | ;\r |
6 | ; Module Name:\r | |
7 | ;\r | |
8 | ; ReadDr4.Asm\r | |
9 | ;\r | |
10 | ; Abstract:\r | |
11 | ;\r | |
12 | ; AsmReadDr4 function\r | |
13 | ;\r | |
14 | ; Notes:\r | |
15 | ;\r | |
16 | ;------------------------------------------------------------------------------\r | |
17 | \r | |
18 | DEFAULT REL\r | |
19 | SECTION .text\r | |
20 | \r | |
21 | ;------------------------------------------------------------------------------\r | |
22 | ; UINTN\r | |
23 | ; EFIAPI\r | |
24 | ; AsmReadDr4 (\r | |
25 | ; VOID\r | |
26 | ; );\r | |
27 | ;------------------------------------------------------------------------------\r | |
28 | global ASM_PFX(AsmReadDr4)\r | |
29 | ASM_PFX(AsmReadDr4):\r | |
30 | ;\r | |
31 | ; There's no obvious reason to access this register, since it's aliased to\r | |
32 | ; DR7 when DE=0 or an exception generated when DE=1\r | |
33 | ;\r | |
d3febfd9 | 34 | mov rax, dr4\r |
b03d993a JJ |
35 | ret\r |
36 | \r |