Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/blob/main/vendor/libc/src/unix/haiku/x86_64.rs # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `aienux / vendor / libc / src / unix / haiku / x86_64.rs` 58 lines ยท 1419 bytes Raw Blame History 1 use crate::prelude::*; 2 3 s! { 4 pub struct fpu_state { 5 pub control: c_ushort, 6 pub status: c_ushort, 7 pub tag: c_ushort, 8 pub opcode: c_ushort, 9 pub rip: c_ulong, 10 pub rdp: c_ulong, 11 pub mxcsr: c_uint, 12 pub mscsr_mask: c_uint, 13 pub _fpreg: [[c_uchar; 8]; 16], 14 pub _xmm: [[c_uchar; 16]; 16], 15 _reserved_416_511: Padding<[c_uchar; 96]>, 16 } 17 18 pub struct xstate_hdr { 19 pub bv: c_ulong, 20 pub xcomp_bv: c_ulong, 21 _reserved: Padding<[c_uchar; 48]>, 22 } 23 24 pub struct savefpu { 25 pub fp_fxsave: fpu_state, 26 pub fp_xstate: xstate_hdr, 27 pub _fp_ymm: [[c_uchar; 16]; 16], 28 } 29 30 pub struct mcontext_t { 31 pub rax: c_ulong, 32 pub rbx: c_ulong, 33 pub rcx: c_ulong, 34 pub rdx: c_ulong, 35 pub rdi: c_ulong, 36 pub rsi: c_ulong, 37 pub rbp: c_ulong, 38 pub r8: c_ulong, 39 pub r9: c_ulong, 40 pub r10: c_ulong, 41 pub r11: c_ulong, 42 pub r12: c_ulong, 43 pub r13: c_ulong, 44 pub r14: c_ulong, 45 pub r15: c_ulong, 46 pub rsp: c_ulong, 47 pub rip: c_ulong, 48 pub rflags: c_ulong, 49 pub fpu: savefpu, 50 } 51 52 pub struct ucontext_t { 53 pub uc_link: *mut ucontext_t, 54 pub uc_sigmask: crate::sigset_t, 55 pub uc_stack: crate::stack_t, 56 pub uc_mcontext: mcontext_t, 57 } 58 }