summaryrefslogtreecommitdiffstats
path: root/arch/csky/include/uapi
diff options
context:
space:
mode:
authorGuo Ren <ren_guo@c-sky.com>2018-09-05 14:25:08 +0800
committerGuo Ren <ren_guo@c-sky.com>2018-10-25 23:36:19 +0800
commit4859bfca11c7d63d55175bcd85a75d6cee4b7184 (patch)
treecb768c4368da4efdb051241cfbc7b11fa1a8fc6e /arch/csky/include/uapi
parent081860b970adb69888734df0c8aa849b00ea7254 (diff)
downloadlinux-4859bfca11c7d63d55175bcd85a75d6cee4b7184.tar.bz2
csky: System Call
This patch adds files related to syscall. Signed-off-by: Guo Ren <ren_guo@c-sky.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/csky/include/uapi')
-rw-r--r--arch/csky/include/uapi/asm/unistd.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/csky/include/uapi/asm/unistd.h b/arch/csky/include/uapi/asm/unistd.h
new file mode 100644
index 000000000000..224c9a9ab45b
--- /dev/null
+++ b/arch/csky/include/uapi/asm/unistd.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
+
+#define __ARCH_WANT_SYS_CLONE
+#include <asm-generic/unistd.h>
+
+#define __NR_set_thread_area (__NR_arch_specific_syscall + 0)
+__SYSCALL(__NR_set_thread_area, sys_set_thread_area)
+#define __NR_cacheflush (__NR_arch_specific_syscall + 1)
+__SYSCALL(__NR_cacheflush, sys_cacheflush)