Heap: Remove outdated FIXME

This commit is contained in:
apio 2022-12-06 18:20:18 +01:00
parent 87fb195202
commit cccf89dd16
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -33,10 +33,7 @@ static_assert(sizeof(HeapBlock) == 48UL);
static HeapBlock* heap_start = nullptr;
static HeapBlock* heap_end = nullptr;
static Result<HeapBlock*> allocate_pages(
usize count) // FIXME: Keep track of virtual address space usage. For now, since the address
// space is so huge, we can just start at a fairly large address and assume
// we'll never run into anything, but this will probably bite us in the future.
static Result<HeapBlock*> allocate_pages(usize count)
{
u64 virt = TRY(KernelVM::alloc_several_pages(count));
void* const ptr = (void*)TRY(MemoryManager::alloc_at(virt, count, MMU::ReadWrite | MMU::NoExecute));