summaryrefslogtreecommitdiff
path: root/syscall.c
diff options
context:
space:
mode:
authorWichert Akkerman <wichert@deephackmode.org>2001-03-28 20:29:17 +0000
committerWichert Akkerman <wichert@deephackmode.org>2001-03-28 20:29:17 +0000
commit00a82eed2b1b7989a8659390c23b8a87425f235d (patch)
tree371bfad0c40f09b55e155bd2c80b6df40ac0cc39 /syscall.c
parentfe8f65dde2efe573861e6fd4a5e2f17f16ea6424 (diff)
downloadstrace-00a82eed2b1b7989a8659390c23b8a87425f235d.tar.gz
strace-00a82eed2b1b7989a8659390c23b8a87425f235d.tar.bz2
strace-00a82eed2b1b7989a8659390c23b8a87425f235d.tar.xz
several Linux/sparc fixes
Diffstat (limited to 'syscall.c')
-rw-r--r--syscall.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/syscall.c b/syscall.c
index ffd8f65..39cc026 100644
--- a/syscall.c
+++ b/syscall.c
@@ -43,7 +43,17 @@
#include <sys/param.h>
#if HAVE_ASM_REG_H
+#ifdef SPARC
+# define fpq kernel_fpq
+# define fq kernel_fq
+# define fpu kernel_fpu
+#endif
#include <asm/reg.h>
+#ifdef SPARC
+# undef fpq
+# undef fq
+# undef fpu
+#endif
#endif
#ifdef HAVE_SYS_REG_H
@@ -625,7 +635,7 @@ struct tcb *tcp;
static long r0;
static long a3;
#elif defined (SPARC)
- static struct pt_regs regs;
+ static struct regs regs;
static unsigned long trap;
#elif defined(MIPS)
static long a3;