From 6ff044c07aee9c96467f24f128974c206b986980 Mon Sep 17 00:00:00 2001 From: Starnakin Date: Fri, 28 Nov 2025 20:22:19 +0100 Subject: [PATCH] fix: get pd phys addr --- src/multitasking/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/multitasking/process.c b/src/multitasking/process.c index 817103b..02279d0 100644 --- a/src/multitasking/process.c +++ b/src/multitasking/process.c @@ -23,7 +23,7 @@ struct pcb *create_process(uid_t uid) return NULL; } new_pcb->cr3 = - (void *)((uint32_t)VA2PTE((uint32_t)new_pcb->heap) & PAGE_MASK); + (void *)((uint32_t)*VA2PTE((uint32_t)new_pcb->heap) & PAGE_MASK); memcpy(new_pcb->heap, PD, 4096); // TODO optimize to copy only used bytes new_pcb->heap[1023] = (uint32_t)new_pcb->cr3 | INIT_FLAGS;