executable
This commit is contained in:
parent
97eaae1c76
commit
6609bd10c5
|
@ -501,6 +501,12 @@ pub mod perm_check {
|
||||||
pub const fn writable(perm: Permission) -> bool {
|
pub const fn writable(perm: Permission) -> bool {
|
||||||
matches!(perm, Permission::Write)
|
matches!(perm, Permission::Write)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Page is executable
|
||||||
|
#[inline(always)]
|
||||||
|
pub const fn executable(perm: Permission) -> bool {
|
||||||
|
matches!(perm, Permission::Exec)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Handle VM traps
|
/// Handle VM traps
|
||||||
|
|
Loading…
Reference in a new issue