]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/X64/WriteDr4.nasm
MdePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / WriteDr4.nasm
1 ;------------------------------------------------------------------------------
2 ;
3 ; Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
4 ; SPDX-License-Identifier: BSD-2-Clause-Patent
5 ;
6 ; Module Name:
7 ;
8 ; WriteDr4.Asm
9 ;
10 ; Abstract:
11 ;
12 ; AsmWriteDr4 function
13 ;
14 ; Notes:
15 ;
16 ;------------------------------------------------------------------------------
17
18 DEFAULT REL
19 SECTION .text
20
21 ;------------------------------------------------------------------------------
22 ; UINTN
23 ; EFIAPI
24 ; AsmWriteDr4 (
25 ; IN UINTN Value
26 ; );
27 ;------------------------------------------------------------------------------
28 global ASM_PFX(AsmWriteDr4)
29 ASM_PFX(AsmWriteDr4):
30 ;
31 ; There's no obvious reason to access this register, since it's aliased to
32 ; DR6 when DE=0 or an exception generated when DE=1
33 ;
34 DB 0xf, 0x23, 0xe1
35 mov rax, rcx
36 ret
37