aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/sparc/sparc64
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-02-22 09:37:25 +0000
committerUlrich Drepper <drepper@redhat.com>1999-02-22 09:37:25 +0000
commit555d4c582e3189a3a823debfff79761b8283df1f (patch)
tree0cd7c9aa1a321593792ad51751cf3c0844b1d7d5 /sysdeps/unix/sysv/linux/sparc/sparc64
parent13f2ac59bff417b69de02939230cfc1aca73f37c (diff)
downloadglibc-555d4c582e3189a3a823debfff79761b8283df1f.tar
glibc-555d4c582e3189a3a823debfff79761b8283df1f.tar.gz
glibc-555d4c582e3189a3a823debfff79761b8283df1f.tar.bz2
glibc-555d4c582e3189a3a823debfff79761b8283df1f.zip
Update.
1999-02-21 David S. Miller <davem@redhat.com> * sysdeps/unix/sysv/linux/sparc/sparc32/sigcontextinfo.h: Fix parentheses in Feb 2 changes. * sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h: Likewise.
Diffstat (limited to 'sysdeps/unix/sysv/linux/sparc/sparc64')
-rw-r--r--sysdeps/unix/sysv/linux/sparc/sparc64/sigcontextinfo.h10
1 files changed, 5 insertions, 5 deletions
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))