diff --git a/kernel/src/memory/Heap.cpp b/kernel/src/memory/Heap.cpp index f1c76857..31a1004c 100644 --- a/kernel/src/memory/Heap.cpp +++ b/kernel/src/memory/Heap.cpp @@ -33,10 +33,7 @@ static_assert(sizeof(HeapBlock) == 48UL); static HeapBlock* heap_start = nullptr; static HeapBlock* heap_end = nullptr; -static Result 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 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));