aboutsummaryrefslogtreecommitdiffstats
path: root/arch/nds32/kernel/syscall_table.c
diff options
context:
space:
mode:
authorGreentime Hu <greentime@andestech.com>2017-10-25 10:37:49 +0800
committerGreentime Hu <greentime@andestech.com>2018-02-22 10:44:33 +0800
commit1932fbe36e02f54223ac4c6779b92269ca8b9b60 (patch)
tree03ef88dfb3d20281319075f94d970ebf6da87bb5 /arch/nds32/kernel/syscall_table.c
parentnds32: ELF definitions (diff)
downloadlinux-dev-1932fbe36e02f54223ac4c6779b92269ca8b9b60.tar.xz
linux-dev-1932fbe36e02f54223ac4c6779b92269ca8b9b60.zip
nds32: System calls handling
This patch adds support for system calls. Signed-off-by: Vincent Chen <vincentc@andestech.com> Signed-off-by: Greentime Hu <greentime@andestech.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/nds32/kernel/syscall_table.c')
-rw-r--r--arch/nds32/kernel/syscall_table.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/nds32/kernel/syscall_table.c b/arch/nds32/kernel/syscall_table.c
new file mode 100644
index 000000000000..7879c061b87f
--- /dev/null
+++ b/arch/nds32/kernel/syscall_table.c
@@ -0,0 +1,17 @@
+// SPDX-License-Identifier: GPL-2.0
+// Copyright (C) 2005-2017 Andes Technology Corporation
+
+#include <linux/syscalls.h>
+#include <linux/signal.h>
+#include <linux/unistd.h>
+#include <asm/syscalls.h>
+
+#undef __SYSCALL
+#define __SYSCALL(nr, call) [nr] = (call),
+
+#define sys_rt_sigreturn sys_rt_sigreturn_wrapper
+#define sys_fadvise64_64 sys_fadvise64_64_wrapper
+void *sys_call_table[__NR_syscalls] __aligned(8192) = {
+ [0 ... __NR_syscalls - 1] = sys_ni_syscall,
+#include <asm/unistd.h>
+};