1234567891011121314151617181920212223242526272829303132 |
- #define SIGCONTEXT unsigned long _info, ucontext_t *
- #define SIGCONTEXT_EXTRA_ARGS _info,
- #define GET_PC(ctx) ((void *) (ctx->uc_mcontext.sc_pc & 0x3fffffff))
- #define GET_FRAME(ctx) ((void *) ctx->uc_mcontext.sc_a[1])
- #define GET_STACK(ctx) ((void *) ctx->uc_mcontext.sc_a[1])
- #define CALL_SIGHANDLER(handler, signo, ctx) \
- (handler)((signo), SIGCONTEXT_EXTRA_ARGS (ctx))
|