linux_syscalls/env/aux/riscv.rs
1use super::{aux_t, AuxValue, Sealed};
2
3crate::bitflags! {
4 #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
5 pub enum Features: usize {
6 ISA_A = 1 << 0,
7 ISA_C = 1 << 2,
8 ISA_D = 1 << 3,
9 ISA_F = 1 << 5,
10 ISA_I = 1 << 8,
11 ISA_M = 1 << 12,
12 }
13
14 impl Sealed for Features {}
15 impl AuxValue for Features {
16 fn from(value: aux_t) -> Self {
17 (value as usize).into()
18 }
19 }
20}
21
22pub type Features2 = usize;