fix/kernel: Fixed broken table allocation for amd64 pagining API
This commit is contained in:
parent
785972d708
commit
fb7da2a7f9
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ int vmap(uint64_t *pagemap, uint64_t virt, uint64_t phys, uint64_t flags)
|
|||
return -1;
|
||||
}
|
||||
|
||||
pml1[pml1_idx] = phys | (flags & (VMM_PRESENT | VMM_WRITE | VMM_USER | VMM_NX));
|
||||
pml1[pml1_idx] = phys | flags;
|
||||
__asm__ volatile("invlpg (%0)" ::"r"(virt) : "memory");
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue