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 13oLINK ucontext (uc_link) 14oSS_SP ucontext (uc_stack.ss_sp) 15oSS_SIZE ucontext (uc_stack.ss_size) 16oR0 mcontext (gregs[REG_R0]) 17oR1 mcontext (gregs[REG_R1]) 18oR2 mcontext (gregs[REG_R2]) 19oR3 mcontext (gregs[REG_R3]) 20oR4 mcontext (gregs[REG_R4]) 21oR5 mcontext (gregs[REG_R5]) 22oR6 mcontext (gregs[REG_R6]) 23oR7 mcontext (gregs[REG_R7]) 24oR8 mcontext (gregs[REG_R8]) 25oR9 mcontext (gregs[REG_R9]) 26oR10 mcontext (gregs[REG_R10]) 27oR11 mcontext (gregs[REG_R11]) 28oR12 mcontext (gregs[REG_R12]) 29oR13 mcontext (gregs[REG_R13]) 30oR14 mcontext (gregs[REG_R14]) 31oR15 mcontext (gregs[REG_R15]) 32oPC mcontext (pc) 33oPR mcontext (pr) 34oSR mcontext (sr) 35oGBR mcontext (gbr) 36oMACH mcontext (mach) 37oMACL mcontext (macl) 38oSIGMASK ucontext (uc_sigmask) 39