summaryrefslogtreecommitdiff
path: root/arch/powerpc/kernel/systbl.S
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2021-03-02 00:30:18 +0900
committerMichael Ellerman <mpe@ellerman.id.au>2021-04-14 23:04:16 +1000
commit14b3c9d24a7a5c274a9df27d245516f466d3bc5f (patch)
tree925edb35e258a8f53943e9a185b72c6ff9fd1892 /arch/powerpc/kernel/systbl.S
parente5d56763525e65417dad0d46572b234fa0008e40 (diff)
downloadlwn-14b3c9d24a7a5c274a9df27d245516f466d3bc5f.tar.gz
lwn-14b3c9d24a7a5c274a9df27d245516f466d3bc5f.zip
powerpc/syscalls: switch to generic syscalltbl.sh
Many architectures duplicate similar shell scripts. This commit converts powerpc to use scripts/syscalltbl.sh. This also unifies syscall_table_32.h and syscall_table_c32.h. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210301153019.362742-1-masahiroy@kernel.org
Diffstat (limited to 'arch/powerpc/kernel/systbl.S')
-rw-r--r--arch/powerpc/kernel/systbl.S5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/systbl.S b/arch/powerpc/kernel/systbl.S
index d34276f3c495..cb3358886203 100644
--- a/arch/powerpc/kernel/systbl.S
+++ b/arch/powerpc/kernel/systbl.S
@@ -21,6 +21,7 @@
#define __SYSCALL(nr, entry) .long entry
#endif
+#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native)
.globl sys_call_table
sys_call_table:
#ifdef CONFIG_PPC64
@@ -30,8 +31,10 @@ sys_call_table:
#endif
#ifdef CONFIG_COMPAT
+#undef __SYSCALL_WITH_COMPAT
+#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, compat)
.globl compat_sys_call_table
compat_sys_call_table:
#define compat_sys_sigsuspend sys_sigsuspend
-#include <asm/syscall_table_c32.h>
+#include <asm/syscall_table_32.h>
#endif