+x86_64.ha (825B)
1 // SPDX-License-Identifier: MPL-2.0 2 // (c) Hare authors <https://harelang.org> 3 4 export type sigcontext = struct { 5 sc_rdi: u64, 6 sc_rsi: u64, 7 sc_rdx: u64, 8 sc_rcx: u64, 9 sc_r8: u64, 10 sc_r9: u64, 11 sc_r10: u64, 12 sc_r11: u64, 13 sc_r12: u64, 14 sc_r13: u64, 15 sc_r14: u64, 16 sc_r15: u64, 17 sc_rbp: u64, 18 sc_rbx: u64, 19 sc_rax: u64, 20 sc_gs: u64, 21 sc_fs: u64, 22 sc_es: u64, 23 sc_ds: u64, 24 sc_trapno: u64, 25 sc_err: u64, 26 sc_rip: u64, 27 sc_cs: u64, 28 sc_rflags: u64, 29 sc_rsp: u64, 30 sc_ss: u64, 31 32 sc_fpstate: *fxsave64, 33 __sc_unused: int, 34 sc_mask: int, 35 sc_cookie: i64, 36 }; 37 38 export type fxsave64 = struct { 39 fx_fcw: u16, 40 fx_fsw: u16, 41 fx_ftw: u8, 42 fx_unused1: u8, 43 fx_fop: u16, 44 fx_rip: u64, 45 fx_rdp: u64, 46 fx_mxcsr: u32, 47 fx_mxcsr_mask: u32, 48 fx_st: [8][2]u64, 49 fx_xmm: [16][2]u64, 50 fx_unused3: [96]u8, 51 }; 52 53 export type ucontext = sigcontext;