Kernel: General allocator takes first valid vaddr as parameter

This commit is contained in:
2023-06-17 22:23:34 +03:00
parent f83ae1e9c6
commit 714305ef56
3 changed files with 16 additions and 8 deletions

View File

@@ -791,7 +791,7 @@ namespace Kernel
LockGuard _(m_lock);
if (!m_general_allocator)
m_general_allocator = TRY(GeneralAllocator::create(page_table()));
m_general_allocator = TRY(GeneralAllocator::create(page_table(), 0x400000));
address = m_general_allocator->allocate(bytes);
}