summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorChristian Svensson <blue@cmd.nu>2013-02-14 13:26:27 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2013-02-14 13:38:27 +0100
commit492f81f14cc86c13b0f67ac66a3d5ea9f6ccb673 (patch)
tree7bcafe96f0842056d441b5f04d05c70a24d7d67b /util.c
parenteec8d5d6b028665a73169fda96e4e873cb8351f0 (diff)
downloadstrace-492f81f14cc86c13b0f67ac66a3d5ea9f6ccb673.tar.gz
strace-492f81f14cc86c13b0f67ac66a3d5ea9f6ccb673.tar.bz2
strace-492f81f14cc86c13b0f67ac66a3d5ea9f6ccb673.tar.xz
Add support for the OpenRISC 1000 platform
* configure.ac: Added or1k architecture.. * defs.h: Added or1k to use register reading system. * linux/or1k/ioctlent.h.in: Use i386 ioctls. * linux/or1k/syscallent.h: New file. * process.c: Added or1k register defs to struct_user_offsets[]. * syscall.c: Added or1k_io iovec for or1k GETREGSET,   regset structure for or1k.   (printcall): Added handling for or1k.   (get_regs): Likewise.   (get_scno): Likewise.   (get_syscall_args): Likewise.   (get_syscall_result): Likewise. (get_error): Likewise. * util.c (change_syscall): Added dummy handling for or1k. * system.c (sys_or1k_atomic): New function (or1k specific syscall). Signed-off-by: Christian Svensson <blue@cmd.nu> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.c b/util.c
index f699cb2..55ff90d 100644
--- a/util.c
+++ b/util.c
@@ -1296,6 +1296,8 @@ change_syscall(struct tcb *tcp, arg_setup_state *state, int new)
/* setbpt/clearbpt never used: */
/* microblaze is only supported since about linux-2.6.30 */
return 0;
+#elif defined(OR1K)
+ /* never reached; OR1K is only supported by kernels since 3.1.0. */
#else
#warning Do not know how to handle change_syscall for this architecture
#endif /* architecture */