aboutsummaryrefslogtreecommitdiffstats
path: root/arch/csky/include/uapi
diff options
context:
space:
mode:
authorGuo Ren <ren_guo@c-sky.com>2018-09-05 02:25:08 -0400
committerGuo Ren <ren_guo@c-sky.com>2018-10-25 11:36:19 -0400
commit4859bfca11c7d63d55175bcd85a75d6cee4b7184 (patch)
treecb768c4368da4efdb051241cfbc7b11fa1a8fc6e /arch/csky/include/uapi
parent081860b970adb69888734df0c8aa849b00ea7254 (diff)
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 @@
1/* SPDX-License-Identifier: GPL-2.0 */
2// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
3
4#define __ARCH_WANT_SYS_CLONE
5#include <asm-generic/unistd.h>
6
7#define __NR_set_thread_area (__NR_arch_specific_syscall + 0)
8__SYSCALL(__NR_set_thread_area, sys_set_thread_area)
9#define __NR_cacheflush (__NR_arch_specific_syscall + 1)
10__SYSCALL(__NR_cacheflush, sys_cacheflush)