Kernel: Heap gets multiboot pointer with P2V

This commit is contained in:
Bananymous 2023-05-30 23:57:44 +03:00
parent ed0dcacab3
commit 708d401d2c
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ namespace Kernel
for (size_t i = 0; i < g_multiboot_info->mmap_length;)
{
multiboot_memory_map_t* mmmt = (multiboot_memory_map_t*)(g_multiboot_info->mmap_addr + i);
multiboot_memory_map_t* mmmt = (multiboot_memory_map_t*)P2V(g_multiboot_info->mmap_addr + i);
if (mmmt->type == 1)
{