Fixed paging
This commit is contained in:
parent
7c18d7e7b1
commit
aa3f734406
4 changed files with 212 additions and 8 deletions
|
@ -59,7 +59,7 @@ static void _map(pagetable *pm, uintptr_t virt, uintptr_t phys, uint64_t flags)
|
|||
|
||||
pagetable *pml1_table = (pagetable *)(pml2_table->entries[pml2_idx] & 0x000FFFFFFFFFF000);
|
||||
if ((pml1_table->entries[pml1_idx] & 1)) {
|
||||
debug("_map(): Remapping present page\n");
|
||||
// debug("_map(): Remapping present page\n");
|
||||
}
|
||||
|
||||
pml1_table->entries[pml1_idx] = (phys & 0x000FFFFFFFFFF000) | flags;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue