]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | AsmReadLdtr function\r | |
3 | \r | |
4 | Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r | |
5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
6 | \r | |
7 | **/\r | |
8 | \r | |
9 | /**\r | |
10 | Reads the current Local Descriptor Table Register(LDTR) selector.\r | |
11 | \r | |
12 | Reads and returns the current 16-bit LDTR descriptor value. This function is\r | |
13 | only available on IA-32 and x64.\r | |
14 | \r | |
15 | @return The current selector of LDT.\r | |
16 | \r | |
17 | **/\r | |
18 | UINT16\r | |
19 | EFIAPI\r | |
20 | AsmReadLdtr (\r | |
21 | VOID\r | |
22 | )\r | |
23 | {\r | |
24 | _asm {\r | |
25 | sldt ax\r | |
26 | }\r | |
27 | }\r |