forked from Bananymous/banan-os
Kernel: fix MMU::map_page_at()
We used to only reassign if flags changed
This commit is contained in:
parent
dd4973ac35
commit
187bb046aa
|
@ -250,8 +250,7 @@ namespace Kernel
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t* pt = (uint64_t*)(pd[pde] & PAGE_MASK);
|
uint64_t* pt = (uint64_t*)(pd[pde] & PAGE_MASK);
|
||||||
if ((pt[pte] & flags) != flags)
|
pt[pte] = paddr | flags;
|
||||||
pt[pte] = paddr | flags;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64_t MMU::get_page_data(vaddr_t address) const
|
uint64_t MMU::get_page_data(vaddr_t address) const
|
||||||
|
|
Loading…
Reference in New Issue