VMM -- Know what? Let's ignore huge pages for simplicity

This commit is contained in:
2018-03-20 13:08:55 +01:00
parent ae2de799f3
commit cb09833ebc
3 changed files with 10 additions and 83 deletions

View File

@@ -24,7 +24,7 @@ void memory_init()
uint64_t page = vmm_get_page(kernel_P4, addr);
if(!PAGE_EXIST(page) || !(page & PAGE_PRESENT))
{
uint16_t flags = PAGE_GLOBAL | PAGE_HUGE | PAGE_WRITE;
uint16_t flags = PAGE_GLOBAL | PAGE_WRITE;
vmm_set_page(kernel_P4, addr, p, flags | PAGE_PRESENT, 1);
}