]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Library/GenericBdsLib/x64/ClearDr.asm
UEFI HII: Merge UEFI HII support changes from branch.
[mirror_edk2.git] / MdeModulePkg / Library / GenericBdsLib / x64 / ClearDr.asm
1 title ClearDr.asm
2 ;------------------------------------------------------------------------------
3 ;
4 ; Copyright (c) 2005, Intel Corporation
5 ; All rights reserved. This program and the accompanying materials
6 ; are licensed and made available under the terms and conditions of the BSD License
7 ; which accompanies this distribution. The full text of the license may be found at
8 ; http://opensource.org/licenses/bsd-license.php
9 ;
10 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
12 ;
13 ; Module Name:
14 ;
15 ; ClearDr.asm
16 ;
17 ; Abstract:
18 ;
19 ; Clear dr0 dr1 register
20 ;
21 ;------------------------------------------------------------------------------
22
23 text SEGMENT
24
25 ;------------------------------------------------------------------------------
26 ; VOID
27 ; ClearDebugRegisters (
28 ; VOID
29 ; )
30 ;------------------------------------------------------------------------------
31 ClearDebugRegisters PROC PUBLIC
32 push rax
33 xor rax, rax
34 mov dr0, rax
35 mov dr1, rax
36 pop rax
37 ret
38 ClearDebugRegisters ENDP
39
40 END
41