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 / nto / arch / aarch64.rs
| 1 | //! Definitions specific to QNX on AArch64 |
| 2 | //! |
| 3 | //! This module applies to: |
| 4 | //! |
| 5 | //! * `aarch64-unknown-nto-qnx700` |
| 6 | //! * `aarch64-unknown-nto-qnx710` |
| 7 | //! * `aarch64-unknown-nto-qnx710_iosock` |
| 8 | //! * `aarch64-unknown-qnx` |
| 9 | |
| 10 | use crate::prelude::*; |
| 11 | |
| 12 | pub type wchar_t = u32; |
| 13 | pub type time_t = i64; |
| 14 | |
| 15 | s! { |
| 16 | pub struct aarch64_qreg_t { |
| 17 | pub qlo: u64, |
| 18 | pub qhi: u64, |
| 19 | } |
| 20 | |
| 21 | pub struct aarch64_fpu_registers { |
| 22 | pub reg: [crate::aarch64_qreg_t; 32], |
| 23 | pub fpsr: u32, |
| 24 | pub fpcr: u32, |
| 25 | } |
| 26 | |
| 27 | pub struct aarch64_cpu_registers { |
| 28 | pub gpr: [u64; 32], |
| 29 | pub elr: u64, |
| 30 | pub pstate: u64, |
| 31 | } |
| 32 | |
| 33 | #[repr(align(16))] |
| 34 | pub struct mcontext_t { |
| 35 | pub cpu: crate::aarch64_cpu_registers, |
| 36 | pub fpu: crate::aarch64_fpu_registers, |
| 37 | } |
| 38 | |
| 39 | pub struct stack_t { |
| 40 | pub ss_sp: *mut c_void, |
| 41 | pub ss_size: size_t, |
| 42 | pub ss_flags: c_int, |
| 43 | } |
| 44 | } |