From 3372e386f591a1035b6ae99a03aa3faaa8e28685 Mon Sep 17 00:00:00 2001 From: starnakin Date: Tue, 15 Oct 2024 01:23:12 +0200 Subject: [PATCH] fix: add flag when page-frame link --- src/memory/page.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memory/page.c b/src/memory/page.c index f0c3d35..8707c3e 100644 --- a/src/memory/page.c +++ b/src/memory/page.c @@ -44,7 +44,7 @@ void *alloc_pages(size_t size) PAGE_SIZE); return NULL; } - page_table_entries[i] = (uint32_t)frame << 12; + page_table_entries[i] = (uint32_t)frame << 12 | INIT_FLAGS; } return (void *)(page_table_entries[index] >> 12); }