0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #include <asm/ppc_asm.h>
0014
0015 .section .rodata,"a"
0016
0017 #ifdef CONFIG_PPC64
0018 .p2align 3
0019 #define __SYSCALL(nr, entry) .8byte entry
0020 #else
0021 .p2align 2
0022 #define __SYSCALL(nr, entry) .long entry
0023 #endif
0024
0025 #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native)
0026 .globl sys_call_table
0027 sys_call_table:
0028 #ifdef CONFIG_PPC64
0029 #include <asm/syscall_table_64.h>
0030 #else
0031 #include <asm/syscall_table_32.h>
0032 #endif
0033
0034 #ifdef CONFIG_COMPAT
0035 #undef __SYSCALL_WITH_COMPAT
0036 #define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, compat)
0037 .globl compat_sys_call_table
0038 compat_sys_call_table:
0039 #define compat_sys_sigsuspend sys_sigsuspend
0040 #include <asm/syscall_table_32.h>
0041 #endif