path: root/arch/s390/include/asm/syscall.h
diff options
authorMike Frysinger <>2010-01-26 04:40:03 -0500
committerFrederic Weisbecker <>2010-02-17 13:07:21 +0100
commite7b8e675d9c71b868b66f62f725a948047514719 (patch)
tree77877e2470148dc47653408c4b624734a8f14239 /arch/s390/include/asm/syscall.h
parentea2c68a08fedb5053ba312d661e47df9f4d72411 (diff)
tracing: Unify arch_syscall_addr() implementations
Most implementations of arch_syscall_addr() are the same, so create a default version in common code and move the one piece that differs (the syscall table) to asm/syscall.h. New arch ports don't have to waste time copying & pasting this simple function. The s390/sparc versions need to be different, so document why. Signed-off-by: Mike Frysinger <> Acked-by: David S. Miller <> Acked-by: Paul Mundt <> Acked-by: Heiko Carstens <> Cc: Steven Rostedt <> LKML-Reference: <> Signed-off-by: Frederic Weisbecker <>
Diffstat (limited to 'arch/s390/include/asm/syscall.h')
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/s390/include/asm/syscall.h b/arch/s390/include/asm/syscall.h
index e0a73d3eb837..8429686951f9 100644
--- a/arch/s390/include/asm/syscall.h
+++ b/arch/s390/include/asm/syscall.h
@@ -15,6 +15,13 @@
#include <linux/sched.h>
#include <asm/ptrace.h>
+ * The syscall table always contains 32 bit pointers since we know that the
+ * address of the function to be called is (way) below 4GB. So the "int"
+ * type here is what we want [need] for both 32 bit and 64 bit systems.
+ */
+extern const unsigned int sys_call_table[];
static inline long syscall_get_nr(struct task_struct *task,
struct pt_regs *regs)