1#ifndef X86_UEFI_MEMORY_H
2#define X86_UEFI_MEMORY_H
50#define KERNEL_STACK_SIZE_IN_BYTES (8 * 4096)
66_Static_assert(
sizeof(
BOOT_INFO) == 352,
"Size of BOOT_INFO doesn't equal 344 bytes. Update the struct.");
67_Static_assert(offsetof(
BOOT_INFO, KernelStackTop) == 0x148,
"KernelStackTop isnt 0x148");
85#define EfiReservedMemoryType 0
86#define EfiLoaderCode 1
87#define EfiLoaderData 2
88#define EfiBootServicesCode 3
89#define EfiBootServicesData 4
90#define EfiRuntimeServicesCode 5
91#define EfiRuntimeServicesData 6
92#define EfiConventionalMemory 7
93#define EfiUnusableMemory 8
94#define EfiACPIReclaimMemory 9
95#define EfiACPIMemoryNVS 10
96#define EfiMemoryMappedIO 11
97#define EfiMemoryMappedIOPort 12
99#define EfiPersistentMemory 14
BOOT_INFO boot_info_local
struct _BLOCK_DEVICE BLOCK_DEVICE
struct _BOOT_INFO * PBOOT_INFO
struct _GOP_PARAMS GOP_PARAMS
struct _BOOT_INFO BOOT_INFO
struct _EFI_MEMORY_DESCRIPTOR EFI_MEMORY_DESCRIPTOR
struct _EFI_MEMORY_DESCRIPTOR * PEFI_MEMORY_DESCRIPTOR
EFI_MEMORY_DESCRIPTOR * MemoryMap
uint64_t AhciBarBases[32]
uint32_t DescriptorVersion
uint32_t PixelsPerScanLine