diff --git a/core/mem/init.c b/core/mem/init.c index eefe7b7..7c6df42 100644 --- a/core/mem/init.c +++ b/core/mem/init.c @@ -118,7 +118,7 @@ void mem_init(struct phys_mem* map, size_t map_len, uintptr_t kernel_virt, phys_ // Map all physical memory to the HHDM address. tmp_hhdm = arch_mem_hhdm_addr(); for (size_t i = 0; i < map_len; i++) { - if (map[i].usage != PHYS_USABLE && map[i].usage != PHYS_STATIC) + if (map[i].usage != PHYS_USABLE && map[i].usage != PHYS_STATIC && map[i].usage != PHYS_RECLAIMABLE) continue; for (size_t p = 0; p < map[i].length; p += pgsz) { uintptr_t vaddr = (uintptr_t)(map[i].address + p + tmp_hhdm);