diff options
Diffstat (limited to 'sysdeps/unix/sysv')
-rw-r--r-- | sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h | 10 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h b/sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h index a5a74289a7..24629d3a07 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h @@ -18,8 +18,8 @@ Boston, MA 02111-1307, USA. */ #define SIGCONTEXT __siginfo_t * -#define GET_PC(ctx) ((void *) ctx->si_regs.pc) -#define ADVANCE_STACK_FRAME(next) \ - ((void *)&((struct reg_window *) (next)->ins[6])) -#define GET_STACK(ctx) ((void *) ctx->si_regs.u_regs[14]) -#define GET_FRAME(ctx) ADVANCE_STACK_FRAME (GET_STACK(ctx)) +#define GET_PC(__ctx) ((void *) ((__ctx)->si_regs.pc)) +#define ADVANCE_STACK_FRAME(__next) \ + ((void *)&(((struct reg_window *) (__next))->ins[6])) +#define GET_STACK(__ctx) ((void *) (__ctx)->si_regs.u_regs[14]) +#define GET_FRAME(__ctx) ADVANCE_STACK_FRAME (GET_STACK(__ctx)) diff --git a/sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h b/sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h index 260658a0d9..d174c9e779 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h +++ b/sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h @@ -21,9 +21,9 @@ #define STACK_BIAS 2047 #endif #define SIGCONTEXT __siginfo_t * -#define GET_PC(ctx) ((void *) ctx->si_regs.tpc) -#define ADVANCE_STACK_FRAME(next) \ - ((void *) &((struct reg_window *) (((unsigned long int) next) \ +#define GET_PC(__ctx) ((void *) ((__ctx)->si_regs.tpc)) +#define ADVANCE_STACK_FRAME(__next) \ + ((void *) &((struct reg_window *) (((unsigned long int) (__next)) \ + STACK_BIAS))->ins[6]) -#define GET_STACK(ctx) ((void *) ctx->si_regs.u_regs[14]) -#define GET_FRAME(ctx) ADVANCE_STACK_FRAME (GET_STACK (ctx)) +#define GET_STACK(__ctx) ((void *) ((__ctx)->si_regs.u_regs[14])) +#define GET_FRAME(__ctx) ADVANCE_STACK_FRAME (GET_STACK (__ctx)) |