26 UINT8 Limit19_16_and_flags;
141 ASSERT (mGdt !=
NULL);
147 CopyMem (mGdt, &GdtTemplate,
sizeof (GdtTemplate));
159 IA32_DESCRIPTOR GdtPtr;
160 IA32_DESCRIPTOR IdtPtr;
165 GdtPtr.Base = (UINT32)(
UINTN)(VOID *)mGdt;
166 GdtPtr.Limit = (UINT16)(
sizeof (GdtTemplate) - 1);
169 IdtPtr.Base = (UINT32)0;
170 IdtPtr.Limit = (UINT16)0;
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
VOID *EFIAPI AllocateRuntimePool(IN UINTN AllocationSize)
VOID InitLinuxDescriptorTables(VOID)
VOID SetLinuxDescriptorTables(VOID)
#define ALIGN_POINTER(Pointer, Alignment)
VOID EFIAPI AsmWriteGdtr(IN CONST IA32_DESCRIPTOR *Gdtr)
VOID EFIAPI AsmWriteIdtr(IN CONST IA32_DESCRIPTOR *Idtr)