From cccf89dd16b70724b83d2d6086be6139711e32e6 Mon Sep 17 00:00:00 2001 From: apio Date: Tue, 6 Dec 2022 18:20:18 +0100 Subject: [PATCH] Heap: Remove outdated FIXME --- kernel/src/memory/Heap.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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));