]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - MdePkg/Library/BaseLib/X86ReadGdtr.c
UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to AmdSev.nasm
[mirror_edk2.git] / MdePkg / Library / BaseLib / X86ReadGdtr.c
... / ...
CommitLineData
1/** @file\r
2 IA-32/x64 AsmReadGdtr()\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\r
11\r
12#include "BaseLibInternals.h"\r
13\r
14/**\r
15 Reads the current Global Descriptor Table Register(GDTR) descriptor.\r
16\r
17 Reads and returns the current GDTR descriptor and returns it in Gdtr. This\r
18 function is only available on IA-32 and x64.\r
19\r
20 If Gdtr is NULL, then ASSERT().\r
21\r
22 @param Gdtr The pointer to a GDTR descriptor.\r
23\r
24**/\r
25VOID\r
26EFIAPI\r
27AsmReadGdtr (\r
28 OUT IA32_DESCRIPTOR *Gdtr\r
29 )\r
30{\r
31 ASSERT (Gdtr != NULL);\r
32 InternalX86ReadGdtr (Gdtr);\r
33}\r