1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * This file contains the table of syscall-handling functions.
4 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
6 * Largely rewritten by Cort Dougan (cort@cs.nmt.edu)
9 * Adapted for iSeries by Mike Corrigan (mikejc@us.ibm.com)
10 * PPC64 updates by Dave Engebretsen (engebret@us.ibm.com)
13 #include <asm/ppc_asm.h>
19 #define __SYSCALL(nr, entry) .8byte entry
22 #define __SYSCALL(nr, entry) .long entry
25 #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native)
29 #include <asm/syscall_table_64.h>
31 #include <asm/syscall_table_32.h>
35 #undef __SYSCALL_WITH_COMPAT
36 #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, compat)
37 .globl compat_sys_call_table
38 compat_sys_call_table:
39 #define compat_sys_sigsuspend sys_sigsuspend
40 #include <asm/syscall_table_32.h>