1#include <stddef.h> 2#include <signal.h> 3#include <sys/ucontext.h> 4 5-- 6 7SIG_BLOCK 8SIG_SETMASK 9 10UC_FLAGS offsetof (ucontext_t, uc_flags) 11UC_LINK offsetof (ucontext_t, uc_link) 12UC_SIGMASK offsetof (ucontext_t, uc_sigmask) 13UC_STACK offsetof (ucontext_t, uc_stack) 14UC_MCONTEXT offsetof (ucontext_t, uc_mcontext) 15MC_GREGS offsetof (mcontext_t, gregs) 16MC_GWINS offsetof (mcontext_t, gwins) 17MC_FPREGS offsetof (mcontext_t, fpregs) 18MC_XRS offsetof (mcontext_t, xrs) 19GREG_PSR (REG_PSR * sizeof(greg_t)) 20GREG_PC (REG_PC * sizeof(greg_t)) 21GREG_NPC (REG_nPC * sizeof(greg_t)) 22GREG_Y (REG_Y * sizeof(greg_t)) 23GREG_G1 (REG_G1 * sizeof(greg_t)) 24GREG_G2 (REG_G2 * sizeof(greg_t)) 25GREG_G3 (REG_G3 * sizeof(greg_t)) 26GREG_G4 (REG_G4 * sizeof(greg_t)) 27GREG_G5 (REG_G5 * sizeof(greg_t)) 28GREG_G6 (REG_G6 * sizeof(greg_t)) 29GREG_G7 (REG_G7 * sizeof(greg_t)) 30GREG_O0 (REG_O0 * sizeof(greg_t)) 31GREG_O1 (REG_O1 * sizeof(greg_t)) 32GREG_O2 (REG_O2 * sizeof(greg_t)) 33GREG_O3 (REG_O3 * sizeof(greg_t)) 34GREG_O4 (REG_O4 * sizeof(greg_t)) 35GREG_O5 (REG_O5 * sizeof(greg_t)) 36GREG_O6 (REG_O6 * sizeof(greg_t)) 37GREG_O7 (REG_O7 * sizeof(greg_t)) 38FPU_D0 offsetof (fpregset_t, fpu_fr.fpu_dregs[0]) 39FPU_D2 offsetof (fpregset_t, fpu_fr.fpu_dregs[1]) 40FPU_D4 offsetof (fpregset_t, fpu_fr.fpu_dregs[2]) 41FPU_D6 offsetof (fpregset_t, fpu_fr.fpu_dregs[3]) 42FPU_D8 offsetof (fpregset_t, fpu_fr.fpu_dregs[4]) 43FPU_D10 offsetof (fpregset_t, fpu_fr.fpu_dregs[5]) 44FPU_D12 offsetof (fpregset_t, fpu_fr.fpu_dregs[6]) 45FPU_D14 offsetof (fpregset_t, fpu_fr.fpu_dregs[7]) 46FPU_D16 offsetof (fpregset_t, fpu_fr.fpu_dregs[8]) 47FPU_D18 offsetof (fpregset_t, fpu_fr.fpu_dregs[9]) 48FPU_D20 offsetof (fpregset_t, fpu_fr.fpu_dregs[10]) 49FPU_D22 offsetof (fpregset_t, fpu_fr.fpu_dregs[11]) 50FPU_D24 offsetof (fpregset_t, fpu_fr.fpu_dregs[12]) 51FPU_D26 offsetof (fpregset_t, fpu_fr.fpu_dregs[13]) 52FPU_D28 offsetof (fpregset_t, fpu_fr.fpu_dregs[14]) 53FPU_D30 offsetof (fpregset_t, fpu_fr.fpu_dregs[15]) 54FPU_Q offsetof (fpregset_t, fpu_q) 55FPU_FSR offsetof (fpregset_t, fpu_fsr) 56FPU_QCNT offsetof (fpregset_t, fpu_qcnt) 57FPU_Q_ENTRY_SZ offsetof (fpregset_t, fpu_q_entrysize) 58FPU_EN offsetof (fpregset_t, fpu_en) 59XRS_ID offsetof (xrs_t, xrs_id) 60XRS_PTR offsetof (xrs_t, xrs_ptr) 61