From 7e10614afe11f2f5381f7ee66d80590104f2c735 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 22 Apr 2025 13:18:29 -0400 Subject: add pml4 allocation/mem ctx alloation --- kernel/memory/memory.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'kernel/memory/memory.h') diff --git a/kernel/memory/memory.h b/kernel/memory/memory.h index c39656d..2657fc7 100644 --- a/kernel/memory/memory.h +++ b/kernel/memory/memory.h @@ -3,6 +3,11 @@ #include "virtalloc.h" struct mem_ctx_s { - struct virt_ctx *virtctx; + // page tables volatile char *pml4; + // virt addr allocator + struct virt_ctx virtctx; + // linked list + struct mem_ctx_s *next; + struct mem_ctx_s *prev; }; -- cgit v1.2.3-freya