mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-21 00:06:34 +00:00
Allow page table protectors to flush TLB entries precisely
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
9a6e1b03e3
commit
4844e7ca7c
@ -538,7 +538,7 @@ impl VmMappingInner {
|
||||
debug_assert!(range.start % PAGE_SIZE == 0);
|
||||
debug_assert!(range.end % PAGE_SIZE == 0);
|
||||
let mut cursor = vm_space.cursor_mut(&range).unwrap();
|
||||
cursor.protect(range.len(), |p| p.flags = perms.into(), true)?;
|
||||
cursor.protect(range.len(), |p| p.flags = perms.into());
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user