summaryrefslogtreecommitdiffstats
path: root/arch/arc/kernel/sys.c
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2013-01-18 15:12:18 +0530
committerVineet Gupta <vgupta@synopsys.com>2013-02-11 20:00:38 +0530
commit4adeefe161a74369e44cc8e663f240ece0470dc3 (patch)
treee5b243c62c0f0d5f8c21b9d856ef350282bfec25 /arch/arc/kernel/sys.c
parent054419ed8405da7aa93f88f698d696980efd3e37 (diff)
downloadblackbird-op-linux-4adeefe161a74369e44cc8e663f240ece0470dc3.tar.gz
blackbird-op-linux-4adeefe161a74369e44cc8e663f240ece0470dc3.zip
ARC: Syscall support (no-legacy-syscall ABI)
This includes support for generic clone/for/vfork/execve Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Al Viro <viro@ZenIV.linux.org.uk> Acked-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arc/kernel/sys.c')
-rw-r--r--arch/arc/kernel/sys.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arc/kernel/sys.c b/arch/arc/kernel/sys.c
new file mode 100644
index 000000000000..f6bdd07583f3
--- /dev/null
+++ b/arch/arc/kernel/sys.c
@@ -0,0 +1,18 @@
+
+#include <linux/syscalls.h>
+#include <linux/signal.h>
+#include <linux/unistd.h>
+
+#include <asm/syscalls.h>
+
+#define sys_clone sys_clone_wrapper
+#define sys_fork sys_fork_wrapper
+#define sys_vfork sys_vfork_wrapper
+
+#undef __SYSCALL
+#define __SYSCALL(nr, call) [nr] = (call),
+
+void *sys_call_table[NR_syscalls] = {
+ [0 ... NR_syscalls-1] = sys_ni_syscall,
+#include <asm/unistd.h>
+};
OpenPOWER on IntegriCloud