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