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