18#include "X64/VirtualMemory.h"
20#define STACK_SIZE 0x20000
53 IoWrite8 (LEGACY_8259_MASK_REGISTER_MASTER, 0xFF);
54 IoWrite8 (LEGACY_8259_MASK_REGISTER_SLAVE, 0xFF);
68 ASSERT (BaseOfStack !=
NULL);
#define CPU_STACK_ALIGNMENT
VOID EFIAPI BuildMemoryAllocationHob(IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length, IN EFI_MEMORY_TYPE MemoryType)
VOID EFIAPI SwitchStack(IN SWITCH_STACK_ENTRY_POINT EntryPoint, IN VOID *Context1 OPTIONAL, IN VOID *Context2 OPTIONAL, IN VOID *NewStack,...)
VOID(EFIAPI * SWITCH_STACK_ENTRY_POINT)(IN VOID *Context1 OPTIONAL, IN VOID *Context2 OPTIONAL)
EFI_STATUS EFIAPI FitUplEntryPoint(IN UINTN BootloaderParameter)
VOID HandOffToDxeCore(IN EFI_PHYSICAL_ADDRESS DxeCoreEntryPoint, IN EFI_PEI_HOB_POINTERS HobList)
EFI_STATUS EFIAPI _ModuleEntryPoint(IN UINTN BootloaderParameter)
UINTN EFIAPI AsmWriteCr3(UINTN Cr3)
UINT8 EFIAPI IoWrite8(IN UINTN Port, IN UINT8 Value)
VOID ClearFirst4KPage(IN VOID *HobStart)
UINTN CreateIdentityMappingPageTables(IN EFI_PHYSICAL_ADDRESS StackBase, IN UINTN StackSize, IN EFI_PHYSICAL_ADDRESS GhcbBase, IN UINTN GhcbSize)
BOOLEAN IsNullDetectionEnabled(VOID)
#define ALIGN_POINTER(Pointer, Alignment)
#define PcdGetBool(TokenName)
#define FeaturePcdGet(TokenName)
VOID *EFIAPI AllocatePages(IN UINTN Pages)
VOID UpdateStackHob(IN EFI_PHYSICAL_ADDRESS BaseAddress, IN UINT64 Length)
UINT64 EFI_PHYSICAL_ADDRESS
#define EFI_PAGES_TO_SIZE(Pages)
#define EFI_SIZE_TO_PAGES(Size)
VOID EFIAPI InitializeFloatingPointUnits(VOID)