1#include <stddef.h> 2#include <signal.h> 3#include <sys/ucontext.h> 4 5-- 6 7SIG_BLOCK 8SIG_SETMASK 9 10#define ucontext(member) offsetof (ucontext_t, member) 11#define mcontext(member) ucontext (uc_mcontext.member) 12#define mreg(reg) mcontext (sc_gr[reg]) 13 14oUC_FLAGS ucontext (uc_flags) 15oUC_LINK ucontext (uc_link) 16oSS_SP ucontext (uc_stack.ss_sp) 17oSS_FLAGS ucontext (uc_stack.ss_flags) 18oSS_SIZE ucontext (uc_stack.ss_size) 19oSC_FLAGS mcontext (sc_flags) 20oR0 mreg (0) 21oR1 mreg (1) 22oR2 mreg (2) 23oR3 mreg (3) 24oR4 mreg (4) 25oR5 mreg (5) 26oR6 mreg (6) 27oR7 mreg (7) 28oR8 mreg (8) 29oR9 mreg (9) 30oR10 mreg (10) 31oR11 mreg (11) 32oR12 mreg (12) 33oR13 mreg (13) 34oR14 mreg (14) 35oR15 mreg (15) 36oR16 mreg (16) 37oR17 mreg (17) 38oR18 mreg (18) 39oR19 mreg (19) 40oR20 mreg (20) 41oR21 mreg (21) 42oR22 mreg (22) 43oR23 mreg (23) 44oR24 mreg (24) 45oR25 mreg (25) 46oR26 mreg (26) 47oR27 mreg (27) 48oR28 mreg (28) 49oR29 mreg (29) 50oR30 mreg (30) 51oR31 mreg (31) 52oFPREGS0 mcontext (sc_fr[0]) 53oFPREGS31 mcontext (sc_fr[31]) 54oIASQ0 mcontext (sc_iasq[0]) 55oIASQ1 mcontext (sc_iasq[1]) 56oIAOQ0 mcontext (sc_iaoq[0]) 57oIAOQ1 mcontext (sc_iaoq[1]) 58oSAR mcontext (sc_sar) 59oSIGMASK ucontext (uc_sigmask) 60