executable

This commit is contained in:
Erin 2023-08-09 20:19:12 +02:00
parent 97eaae1c76
commit 6609bd10c5

View file

@ -501,6 +501,12 @@ pub mod perm_check {
pub const fn writable(perm: Permission) -> bool {
matches!(perm, Permission::Write)
}
/// Page is executable
#[inline(always)]
pub const fn executable(perm: Permission) -> bool {
matches!(perm, Permission::Exec)
}
}
/// Handle VM traps