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);