Update lib/mm/paging.c
This commit is contained in:
@ -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 (0–4MB) */
|
/* 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++)
|
||||||
|
|||||||
Reference in New Issue
Block a user