sigcontextinfo.h 503 B

123456789101112131415
  1. /*
  2. * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com)
  3. *
  4. * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
  5. */
  6. #include <features.h>
  7. #define SIGCONTEXT struct sigcontext *
  8. #define SIGCONTEXT_EXTRA_ARGS
  9. #define GET_PC(ctx) ((void *) ctx->regs.scratch.ret)
  10. #define GET_FRAME(ctx) ((void *) ctx->regs.scratch.fp)
  11. #define GET_STACK(ctx) ((void *) ctx->regs.scratch.sp)
  12. #define CALL_SIGHANDLER(handler, signo, ctx) \
  13. (handler)((signo), SIGCONTEXT_EXTRA_ARGS (ctx))