mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-23 09:23:25 +00:00
Refactor Vmar
and VmMapping
.
Co-authored-by: Zhang Junyang <junyang@stu.pku.edu.cn>
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
e453649d78
commit
4ea3e49788
@ -25,6 +25,6 @@ pub fn sys_munmap(addr: Vaddr, len: usize, ctx: &Context) -> Result<SyscallRetur
|
||||
"integer overflow when (addr + len)",
|
||||
))?;
|
||||
debug!("unmap range = 0x{:x} - 0x{:x}", addr, end);
|
||||
root_vmar.destroy(addr..end)?;
|
||||
root_vmar.remove_mapping(addr..end)?;
|
||||
Ok(SyscallReturn::Return(0))
|
||||
}
|
||||
|
Reference in New Issue
Block a user