Skip to content
Snippets Groups Projects
Commit 194d9b63 authored by koenigl's avatar koenigl
Browse files

Add support for Linux SPARC64 context

parent 1ddef5af
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,12 @@ typedef ucontext_t hwd_ucontext_t;
#elif defined(__powerpc64__)
#define OVERFLOW_ADDRESS(ctx) ctx.ucontext->uc_mcontext.regs->nip
#elif defined(__sparc__)
# if defined(__LP64__)
/* return Trap Next Program Counter */
# define OVERFLOW_ADDRESS(ctx) ((struct sigcontext *)ctx.ucontext)->sigc_regs.tnpc
# else /* SPARC32 */
# define OVERFLOW_ADDRESS(ctx) ((struct sigcontext *)ctx.ucontext)->si_regs.pc
# endif
#elif defined(__arm__)
#define OVERFLOW_ADDRESS(ctx) ctx.ucontext->uc_mcontext.arm_pc
#elif defined(__aarch64__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment