]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/X86ReadGdtr.c
1989cd00ad4be1ba3c70cd923933e8ac79cf641d
2 IA-32/x64 AsmReadGdtr()
4 Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #include "BaseLibInternals.h"
12 Reads the current Global Descriptor Table Register(GDTR) descriptor.
14 Reads and returns the current GDTR descriptor and returns it in Gdtr. This
15 function is only available on IA-32 and x64.
17 If Gdtr is NULL, then ASSERT().
19 @param Gdtr The pointer to a GDTR descriptor.
25 OUT IA32_DESCRIPTOR
*Gdtr
28 ASSERT (Gdtr
!= NULL
);
29 InternalX86ReadGdtr (Gdtr
);