mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 09:53:24 +00:00
Implement an efficient ranged page table
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
c9cfb98746
commit
24a868a670
@ -66,7 +66,7 @@ impl From<VmPerm> for VmPerms {
|
||||
|
||||
impl From<VmPerms> for VmPerm {
|
||||
fn from(perms: VmPerms) -> Self {
|
||||
let mut perm = VmPerm::empty();
|
||||
let mut perm = VmPerm::U;
|
||||
if perms.contains(VmPerms::READ) {
|
||||
perm |= VmPerm::R;
|
||||
}
|
||||
|
Reference in New Issue
Block a user