mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-20 13:06:33 +00:00
Allow the page table un-mapper to flush the TLB precisely
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
e597a10088
commit
9a6e1b03e3
@ -213,11 +213,6 @@ where
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub unsafe fn unmap(&self, vaddr: &Range<Vaddr>) -> Result<(), PageTableError> {
|
||||
self.cursor_mut(vaddr)?.unmap(vaddr.len());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub unsafe fn protect(
|
||||
&self,
|
||||
vaddr: &Range<Vaddr>,
|
||||
@ -296,7 +291,7 @@ pub(super) unsafe fn page_walk<E: PageTableEntryTrait, C: PagingConstsTrait>(
|
||||
) -> Option<(Paddr, PageProperty)> {
|
||||
use super::paddr_to_vaddr;
|
||||
|
||||
let preempt_guard = crate::task::disable_preempt();
|
||||
let _guard = crate::trap::disable_local();
|
||||
|
||||
let mut cur_level = C::NR_LEVELS;
|
||||
let mut cur_pte = {
|
||||
|
Reference in New Issue
Block a user