1#include <inttypes.h> 2#include <signal.h> 3#include <stddef.h> 4#include <sys/ucontext.h> 5 6SIG_BLOCK 7SIG_SETMASK 8 9-- Offsets of the fields in the ucontext_t structure. 10#define ucontext(member) offsetof (ucontext_t, member) 11#define mcontext(member) ucontext (uc_mcontext.member) 12#define greg(member) mcontext (__gregs.member) 13#define fpreg(member) mcontext (__fpregs.member) 14 15UCONTEXT_FLAGS ucontext (__uc_flags) 16UCONTEXT_LINK ucontext (uc_link) 17UCONTEXT_STACK ucontext (uc_stack) 18UCONTEXT_MCONTEXT ucontext (uc_mcontext) 19UCONTEXT_SIGMASK ucontext (uc_sigmask) 20 21MCONTEXT_CSKY_PC greg (__pc) 22MCONTEXT_CSKY_SP greg (__usp) 23MCONTEXT_CSKY_LR greg (__lr) 24MCONTEXT_CSKY_A0 greg (__a0) 25MCONTEXT_CSKY_R8 greg (__regs[2]) 26MCONTEXT_CSKY_R16 greg (__exregs[0]) 27MCONTEXT_CSKY_HI greg (__rhi) 28MCONTEXT_CSKY_LO greg (__rlo) 29MCONTEXT_CSKY_R4 greg (__regs[0]) 30MCONTEXT_CSKY_FESR fpreg (__fesr) 31MCONTEXT_CSKY_FCR fpreg (__fcr) 32MCONTEXT_CSKY_FR0 fpreg (__vr[0]) 33