Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* systbls.S: System call entry point tables for OS compatibility.
0003  *            The native Linux system call table lives here also.
0004  *
0005  * Copyright (C) 1995, 1996, 2007 David S. Miller (davem@davemloft.net)
0006  * Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz)
0007  *
0008  * Based upon preliminary work which is:
0009  *
0010  * Copyright (C) 1995 Adrian M. Rodriguez (adrian@remus.rutgers.edu)
0011  */
0012 
0013 #define __SYSCALL(nr, entry) .word entry
0014     .text
0015     .align  4
0016 #ifdef CONFIG_COMPAT
0017     .globl sys_call_table32
0018 sys_call_table32:
0019 #define __SYSCALL_WITH_COMPAT(nr, native, compat)   __SYSCALL(nr, compat)
0020 #include <asm/syscall_table_32.h>   /* Compat syscalls */
0021 #undef __SYSCALL_WITH_COMPAT
0022 #endif /* CONFIG_COMPAT */
0023 
0024     .align  4
0025     .globl sys_call_table64, sys_call_table
0026 sys_call_table64:
0027 sys_call_table:
0028 #define __SYSCALL_WITH_COMPAT(nr, native, compat)   __SYSCALL(nr, native)
0029 #include <asm/syscall_table_64.h>   /* 64-bit native syscalls */