Kernel: Kmalloc now has its memory statically allocated

We don't use the memory map given by bootloader since this automatically
maps the memory to a available space.
This commit is contained in:
Bananymous
2023-04-14 14:15:26 +03:00
parent fdb4eb6042
commit 6a3b3213cf
5 changed files with 17 additions and 50 deletions

View File

@@ -35,7 +35,9 @@ static uint64_t* allocate_page_aligned_page()
MMU::MMU()
{
// Identity map from 4 KiB -> 6 MiB
// FIXME: We should just identity map until g_kernel_end
// Identity map from 0 -> 6 MiB
m_highest_paging_struct = allocate_page_aligned_page();
uint64_t* pdpt = allocate_page_aligned_page();