Update lib/mm/paging.c

This commit is contained in:
2025-07-06 20:42:04 -05:00
parent 332fcf89dc
commit b8f48fd212

View File

@ -23,7 +23,7 @@ void paging_init(void)
page_directory = (page_directory_entry_t*)alloc_page(); page_directory = (page_directory_entry_t*)alloc_page();
memset(page_directory, 0, PAGE_SIZE); memset(page_directory, 0, PAGE_SIZE);
/* Allocate and set up the first identity-mapped page table (04MB) */ /* Allocate and set up the first identity-mapped page table (0-4MB) */
page_tables[0] = (page_table_entry_t*)alloc_page(); page_tables[0] = (page_table_entry_t*)alloc_page();
memset(page_tables[0], 0, PAGE_SIZE); memset(page_tables[0], 0, PAGE_SIZE);
for (uint32_t i = 0; i < PAGE_TABLE_ENTRIES; i++) for (uint32_t i = 0; i < PAGE_TABLE_ENTRIES; i++)