executable

soft-float
Erin 2023-08-09 20:19:12 +02:00
parent 97eaae1c76
commit 6609bd10c5
1 changed files with 6 additions and 0 deletions

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