Thread (14 messages) 14 messages, 4 authors, 2018-11-30

Re: [PATCH 2/3] powerpc: Add system call table generation support

From: Arnd Bergmann <arnd@arndb.de>
Date: 2018-09-14 10:02:10
Also in: linux-arch, lkml

On Fri, Sep 14, 2018 at 10:33 AM Firoz Khan [off-list ref] wrote:
---
 arch/powerpc/kernel/syscalls/Makefile       |  51 ++++
 arch/powerpc/kernel/syscalls/syscall_32.tbl | 378 ++++++++++++++++++++++++++++
 arch/powerpc/kernel/syscalls/syscall_64.tbl | 372 +++++++++++++++++++++++++++
 arch/powerpc/kernel/syscalls/syscallhdr.sh  |  37 +++
 arch/powerpc/kernel/syscalls/syscalltbl.sh  |  38 +++
I think you should only need a single .tbl  input file here.

+
+systbl_abi_syscall_table_32 := 32
+$(out)/syscall_table_32.h: $(syscall32) $(systbl)
+       $(call if_changed,systbl)
+
+systbl_abi_syscall_table_64 := 64
+$(out)/syscall_table_64.h: $(syscall64) $(systbl)
+       $(call if_changed,systbl)
+
+systbl_abi_syscall_table_c32 := c32
+$(out)/syscall_table_c32.h: $(syscall32) $(systbl)
+       $(call if_changed,systbl)
And here you need a fourth output file for the SPU table on ppc64.
+383     common  statx                           sys_statx
+384     common  pkey_alloc                      sys_pkey_alloc
+385     common  pkey_free                       sys_pkey_free
+386     common  pkey_mprotect                   sys_pkey_mprotect
This also misses rseq and io_pgetevents.

       Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help