aboutsummaryrefslogtreecommitdiffstats
path: root/arch/nds32/include/uapi
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/include/uapi
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/include/uapi')
-rw-r--r--arch/nds32/include/uapi/asm/unistd.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/nds32/include/uapi/asm/unistd.h b/arch/nds32/include/uapi/asm/unistd.h
new file mode 100644
index 000000000000..6e95901cabe3
--- /dev/null
+++ b/arch/nds32/include/uapi/asm/unistd.h
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0
+// Copyright (C) 2005-2017 Andes Technology Corporation
+
+#define __ARCH_WANT_SYNC_FILE_RANGE2
+
+/* Use the standard ABI for syscalls */
+#include <asm-generic/unistd.h>
+
+/* Additional NDS32 specific syscalls. */
+#define __NR_cacheflush (__NR_arch_specific_syscall)
+__SYSCALL(__NR_cacheflush, sys_cacheflush)