summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/kernel/syscall.c
diff options
context:
space:
mode:
authorFiroz Khan <firoz.khan@linaro.org>2018-11-13 15:49:30 +0530
committerMax Filippov <jcmvbkbc@gmail.com>2018-12-02 23:45:41 -0800
commit5eacadb5e66b2b100695777ee7d68d8a2d9bd25c (patch)
tree8e748f3176d9f482d53099265a7897336599d083 /arch/xtensa/kernel/syscall.c
parentc7914ef69dbb325d3d36f68a4befa282d0e0ddc8 (diff)
downloadlinux-5eacadb5e66b2b100695777ee7d68d8a2d9bd25c.tar.bz2
xtensa: generate uapi header and syscall table header files
System call table generation script must be run to gener- ate unistd_32.h and syscall_table.h files. This patch will have changes which will invokes the script. This patch will generate unistd_32.h and syscall_table.h files by the syscall table generation script invoked by xtensa/Makefile and the generated files against the removed files must be identical. The generated uapi header file will be included in uapi/- asm/unistd.h and generated system call table header file will be included by kernel/syscall.c file. Signed-off-by: Firoz Khan <firoz.khan@linaro.org> Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/kernel/syscall.c')
-rw-r--r--arch/xtensa/kernel/syscall.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/xtensa/kernel/syscall.c b/arch/xtensa/kernel/syscall.c
index 8b417c9957c7..b8240e08f1f1 100644
--- a/arch/xtensa/kernel/syscall.c
+++ b/arch/xtensa/kernel/syscall.c
@@ -33,8 +33,9 @@ typedef void (*syscall_t)(void);
syscall_t sys_call_table[__NR_syscalls] /* FIXME __cacheline_aligned */= {
[0 ... __NR_syscalls - 1] = (syscall_t)&sys_ni_syscall,
-#define __SYSCALL(nr,symbol,nargs) [ nr ] = (syscall_t)symbol,
-#include <uapi/asm/unistd.h>
+#define __SYSCALL(nr, entry, nargs)[nr] = (syscall_t)entry,
+#include <asm/syscall_table.h>
+#undef __SYSCALL
};
#define COLOUR_ALIGN(addr, pgoff) \