fix: add flag when page-frame link

This commit is contained in:
starnakin 2024-10-15 01:23:12 +02:00
parent 886f912f36
commit 3372e386f5

View File

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