]>
Commit | Line | Data |
---|---|---|
e1f414b6 | 1 | /** @file\r |
2 | AsmReadIdtr function\r | |
3 | \r | |
bb817c56 | 4 | Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r |
9344f092 | 5 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
e1f414b6 | 6 | \r |
7 | **/\r | |
8 | \r | |
1efcc4ae | 9 | \r |
47fc17d8 | 10 | #include "BaseLibInternals.h"\r |
f734a10a | 11 | \r |
e1f414b6 | 12 | \r |
42eedea9 | 13 | /**\r |
14 | Reads the current Interrupt Descriptor Table Register(GDTR) descriptor.\r | |
15 | \r | |
16 | Reads and returns the current IDTR descriptor and returns it in Idtr. This\r | |
030cd1a2 | 17 | function is only available on IA-32 and x64.\r |
42eedea9 | 18 | \r |
2fc59a00 | 19 | @param Idtr The pointer to a IDTR descriptor.\r |
42eedea9 | 20 | \r |
21 | **/\r | |
e1f414b6 | 22 | VOID\r |
23 | EFIAPI\r | |
24 | InternalX86ReadIdtr (\r | |
25 | OUT IA32_DESCRIPTOR *Idtr\r | |
26 | )\r | |
27 | {\r | |
28 | _asm {\r | |
29 | mov eax, Idtr\r | |
30 | sidt fword ptr [eax]\r | |
31 | }\r | |
32 | }\r |