summaryrefslogtreecommitdiff
path: root/arch/um/sys-x86/shared/sysdep/syscalls_32.h
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2011-08-18 23:03:09 +0400
committerRichard Weinberger <richard@nod.at>2011-11-02 17:14:50 +0400
commit858ba94499b4f48e9eb0be7cf0092f1ea9460fef (patch)
tree8f7a2ba4dc97d771de8b710822dfd2579693220d /arch/um/sys-x86/shared/sysdep/syscalls_32.h
parent27f85f12639fe821375a69900d96e0fbcc1450bf (diff)
downloadlinux-858ba94499b4f48e9eb0be7cf0092f1ea9460fef.tar.xz
um: merge arch/um/sys-{i386,x86_64}/shared
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/sys-x86/shared/sysdep/syscalls_32.h')
-rw-r--r--arch/um/sys-x86/shared/sysdep/syscalls_32.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/um/sys-x86/shared/sysdep/syscalls_32.h b/arch/um/sys-x86/shared/sysdep/syscalls_32.h
new file mode 100644
index 000000000000..05cb796aecb5
--- /dev/null
+++ b/arch/um/sys-x86/shared/sysdep/syscalls_32.h
@@ -0,0 +1,20 @@
+/*
+ * Copyright (C) 2000 - 2008 Jeff Dike (jdike@{addtoit,linux.intel}.com)
+ * Licensed under the GPL
+ */
+
+#include "asm/unistd.h"
+#include "sysdep/ptrace.h"
+
+typedef long syscall_handler_t(struct pt_regs);
+
+/* Not declared on x86, incompatible declarations on x86_64, so these have
+ * to go here rather than in sys_call_table.c
+ */
+extern syscall_handler_t sys_rt_sigaction;
+
+extern syscall_handler_t *sys_call_table[];
+
+#define EXECUTE_SYSCALL(syscall, regs) \
+ ((long (*)(struct syscall_args)) \
+ (*sys_call_table[syscall]))(SYSCALL_ARGS(&regs->regs))