aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / vendor / libc / src / unix / bsd / freebsdlike / freebsd / aarch64.rs
| 1 | use crate::prelude::*; |
| 2 | |
| 3 | pub type clock_t = i32; |
| 4 | pub type wchar_t = u32; |
| 5 | pub type time_t = i64; |
| 6 | pub type suseconds_t = i64; |
| 7 | pub type register_t = i64; |
| 8 | |
| 9 | s! { |
| 10 | pub struct gpregs { |
| 11 | pub gp_x: [crate::register_t; 30], |
| 12 | pub gp_lr: crate::register_t, |
| 13 | pub gp_sp: crate::register_t, |
| 14 | pub gp_elr: crate::register_t, |
| 15 | pub gp_spsr: u32, |
| 16 | pub gp_pad: c_int, |
| 17 | } |
| 18 | |
| 19 | pub struct fpregs { |
| 20 | pub fp_q: u128, |
| 21 | pub fp_sr: u32, |
| 22 | pub fp_cr: u32, |
| 23 | pub fp_flags: c_int, |
| 24 | pub fp_pad: c_int, |
| 25 | } |
| 26 | |
| 27 | pub struct mcontext_t { |
| 28 | pub mc_gpregs: gpregs, |
| 29 | pub mc_fpregs: fpregs, |
| 30 | pub mc_flags: c_int, |
| 31 | pub mc_pad: c_int, |
| 32 | pub mc_spare: [u64; 8], |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | pub(crate) const _ALIGNBYTES: usize = size_of::<c_longlong>() - 1; |
| 37 | |
| 38 | pub const BIOCSRTIMEOUT: c_ulong = 0x8010426d; |
| 39 | pub const BIOCGRTIMEOUT: c_ulong = 0x4010426e; |
| 40 | pub const MAP_32BIT: c_int = 0x00080000; |
| 41 | pub const MINSIGSTKSZ: size_t = 4096; // 1024 * 4 |
| 42 | pub const TIOCTIMESTAMP: c_ulong = 0x40107459; |