From 2308ef509c10b09d79e561121ee5f62195a4ddd5 Mon Sep 17 00:00:00 2001 From: 0x35c <> Date: Fri, 28 Nov 2025 17:39:10 +0100 Subject: [PATCH] fix: GET_PTE uses the right value --- headers/memory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headers/memory.h b/headers/memory.h index 19ca3b7..6fd2af7 100644 --- a/headers/memory.h +++ b/headers/memory.h @@ -29,7 +29,7 @@ #define PDE_MULTIBOOT 1020 #define GET_PTE(pd_index, pt_index) \ - ((uint32_t *)(VIRT_PT_BASE + pd_index * 1024 + pt_index)) + ((uint32_t *)(VIRT_PT_BASE + pd_index * 4096 + pt_index)) #define PTE2VA(pd_index, pt_index) \ ((uint32_t *)((((uint32_t)pd_index * 1024) + (uint32_t)pt_index) * \