Heap: Remove outdated FIXME
This commit is contained in:
parent
87fb195202
commit
cccf89dd16
@ -33,10 +33,7 @@ static_assert(sizeof(HeapBlock) == 48UL);
|
|||||||
static HeapBlock* heap_start = nullptr;
|
static HeapBlock* heap_start = nullptr;
|
||||||
static HeapBlock* heap_end = nullptr;
|
static HeapBlock* heap_end = nullptr;
|
||||||
|
|
||||||
static Result<HeapBlock*> allocate_pages(
|
static Result<HeapBlock*> allocate_pages(usize count)
|
||||||
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.
|
|
||||||
{
|
{
|
||||||
u64 virt = TRY(KernelVM::alloc_several_pages(count));
|
u64 virt = TRY(KernelVM::alloc_several_pages(count));
|
||||||
void* const ptr = (void*)TRY(MemoryManager::alloc_at(virt, count, MMU::ReadWrite | MMU::NoExecute));
|
void* const ptr = (void*)TRY(MemoryManager::alloc_at(virt, count, MMU::ReadWrite | MMU::NoExecute));
|
||||||
|
Loading…
Reference in New Issue
Block a user