interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / vendor / libc / src / unix / bsd / freebsdlike / freebsd / aarch64.rs

42 lines · 1044 bytes Raw Blame History
1use crate::prelude::*;
2
3pub type clock_t = i32;
4pub type wchar_t = u32;
5pub type time_t = i64;
6pub type suseconds_t = i64;
7pub type register_t = i64;
8
9s! {
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
36pub(crate) const _ALIGNBYTES: usize = size_of::<c_longlong>() - 1;
37
38pub const BIOCSRTIMEOUT: c_ulong = 0x8010426d;
39pub const BIOCGRTIMEOUT: c_ulong = 0x4010426e;
40pub const MAP_32BIT: c_int = 0x00080000;
41pub const MINSIGSTKSZ: size_t = 4096; // 1024 * 4
42pub const TIOCTIMESTAMP: c_ulong = 0x40107459;