From 1e35f3b710c63999266f893294fc2874c491ba97 Mon Sep 17 00:00:00 2001 From: Starnakin Date: Tue, 12 Nov 2024 22:06:39 +0100 Subject: [PATCH] fix: add init flag --- src/memory/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memory/memory.c b/src/memory/memory.c index ed3ef61..85284f4 100644 --- a/src/memory/memory.c +++ b/src/memory/memory.c @@ -27,7 +27,7 @@ static void init_multiboot(multiboot_info_t *mbd, uint32_t magic) // Index multiboot_info_t struct for (uint32_t i = 0; i < mbd_size; i++) multiboot_page_table[i] = - ((uint32_t)mbd + PAGE_SIZE * i) & PAGE_MASK; + ((uint32_t)mbd + PAGE_SIZE * i) & PAGE_MASK | INIT_FLAGS; multiboot_info_t *mbd_virt = (multiboot_info_t *)(GET_PAGE_ADDR(1023, 0) + (uint32_t)mbd % PAGE_SIZE);