I found a really odd data type I've never seen before in some GNU EFI code, specifically a call to GetMemoryMap
, wherein the map size, the map key, and the descriptor size are all declared to be the type UINTN
. My IDE does not recognize this data type, so I assume this is something specific to GNU EFI.
I've tried Googling around for it, but all I get is completely irrelevant results or specifications talking about uint_[number of bits]_t
(and similar) types.
The code I'm talking about:
UINTN mapSize = 0, mapKey, descriptorSize;
EFI_MEMORY_DESCRIPTOR *memoryMap = NULL;
UINT32 descriptorVersion;
// Get the required memory pool size for the memory map
Status = uefi_call_wrapper(BS->GetMemoryMap, 5, &mapSize, memoryMap, NULL, &descriptorSize, NULL);
if(Status != EFI_BUFFER_TOO_SMALL) { return Status; }