]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | IA-32/x64 AsmWriteGdtr()\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 | #include "BaseLibInternals.h"\r | |
10 | \r | |
11 | /**\r | |
12 | Writes the current Global Descriptor Table Register (GDTR) descriptor.\r | |
13 | \r | |
14 | Writes and the current GDTR descriptor specified by Gdtr. This function is\r | |
15 | only available on IA-32 and x64.\r | |
16 | \r | |
17 | If Gdtr is NULL, then ASSERT().\r | |
18 | \r | |
19 | @param Gdtr The pointer to a GDTR descriptor.\r | |
20 | \r | |
21 | **/\r | |
22 | VOID\r | |
23 | EFIAPI\r | |
24 | AsmWriteGdtr (\r | |
25 | IN CONST IA32_DESCRIPTOR *Gdtr\r | |
26 | )\r | |
27 | {\r | |
28 | ASSERT (Gdtr != NULL);\r | |
29 | InternalX86WriteGdtr (Gdtr);\r | |
30 | }\r |