From b567d8539c2c4f25b5f096506a9d27f1d8af9e8c Mon Sep 17 00:00:00 2001 From: Marvin Friedrich Date: Sun, 18 Oct 2026 16:02:37 +0200 Subject: [PATCH] also map reclaimable memory in hhdm --- core/mem/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);