linux_syscalls/env/aux/x86.rs
1use super::{aux_t, AuxValue, Sealed};
2
3pub type Features = usize;
4
5crate::bitflags! {
6 #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
7 pub enum Features2: usize {
8 /// MONITOR/MWAIT enabled in Ring 3
9 RING3MWAIT = 1 << 0,
10 /// Kernel allows FSGSBASE instructions available in Ring 3
11 FSGSBASE = 1 << 1,
12 }
13
14 impl Sealed for Features2 {}
15 impl AuxValue for Features2 {
16 fn from(value: aux_t) -> Self {
17 (value as usize).into()
18 }
19 }
20}