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