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