forked from Bananymous/banan-os
Kernel: Heap gets multiboot pointer with P2V
This commit is contained in:
parent
ed0dcacab3
commit
708d401d2c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue