]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/X86ReadIdtr.c
2 IA-32/x64 AsmReadIdtr()
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 Interrupt Descriptor Table Register(IDTR) descriptor.
17 Reads and returns the current IDTR descriptor and returns it in Idtr. This
18 function is only available on IA-32 and x64.
20 If Idtr is NULL, then ASSERT().
22 @param Idtr The pointer to a IDTR descriptor.
28 OUT IA32_DESCRIPTOR
*Idtr
31 ASSERT (Idtr
!= NULL
);
32 InternalX86ReadIdtr (Idtr
);