Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * This file contains the table of syscall-handling functions.
0004  *    Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
0005  *
0006  * Largely rewritten by Cort Dougan (cort@cs.nmt.edu)
0007  * and Paul Mackerras.
0008  *
0009  * Adapted for iSeries by Mike Corrigan (mikejc@us.ibm.com)
0010  * PPC64 updates by Dave Engebretsen (engebret@us.ibm.com) 
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