Clean-up loader and added fetching of the memory map.

This commit is contained in:
2024-01-15 14:21:25 +01:00
parent 8f6cc36637
commit bf8949113b
11 changed files with 210 additions and 252 deletions

View File

@@ -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;