]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/WriteLdtr.c
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Library / BaseLib / Ia32 / WriteLdtr.c
1 /** @file
2 AsmWriteLdtr function
3
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 /**
10 Writes the current Local Descriptor Table Register (GDTR) selector.
11
12 Writes and the current LDTR descriptor specified by Ldtr. This function is
13 only available on IA-32 and x64.
14
15 @param Ldtr 16-bit LDTR selector value.
16
17 **/
18 VOID
19 EFIAPI
20 AsmWriteLdtr (
21 IN UINT16 Ldtr
22 )
23 {
24 _asm {
25 xor eax, eax
26 mov ax, Ldtr
27 lldt ax
28 }
29 }