129 IA32_DESCRIPTOR Gdtr;
137 Memory = SIZE_4GB - 1;
138 Status =
gBS->AllocatePages (
145 ASSERT ((Memory != 0) && (Memory < SIZE_4GB));
151 CopyMem (Gdt, &mGdtTemplate,
sizeof (mGdtTemplate));
156 Gdtr.Base = (UINT32)(
UINTN)Gdt;
157 Gdtr.Limit = (UINT16)(
sizeof (mGdtTemplate) - 1);
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
VOID InitGlobalDescriptorTable(VOID)
#define ASSERT_EFI_ERROR(StatusParameter)
UINT64 EFI_PHYSICAL_ADDRESS
#define EFI_SIZE_TO_PAGES(Size)
VOID EFIAPI SetCodeSelector(UINT16 Selector)
VOID EFIAPI SetDataSelectors(UINT16 Selector)
VOID EFIAPI AsmWriteGdtr(IN CONST IA32_DESCRIPTOR *Gdtr)