Clean-up loader and added fetching of the memory map.
This commit is contained in:
@@ -82,6 +82,10 @@ void* malloc(size_t size) noexcept
|
||||
{
|
||||
prevBlock->nextBlock = newBlock;
|
||||
}
|
||||
else
|
||||
{
|
||||
gNextBlock = newBlock;
|
||||
}
|
||||
AllocInfo* allocInfo = reinterpret_cast<AllocInfo*>(block);
|
||||
allocInfo->elements = requiredElements;
|
||||
return reinterpret_cast<max_align_t*>(block) + 1;
|
||||
|
||||
Reference in New Issue
Block a user