Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
David S. Miller | bc5a2e6 | 2007-07-18 14:28:59 -0700 | [diff] [blame] | 2 | /* systbls.S: System call entry point tables for OS compatibility. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | * The native Linux system call table lives here also. |
| 4 | * |
David S. Miller | bc5a2e6 | 2007-07-18 14:28:59 -0700 | [diff] [blame] | 5 | * Copyright (C) 1995, 1996, 2007 David S. Miller (davem@davemloft.net) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | * Copyright (C) 1997 Jakub Jelinek (jj@sunsite.mff.cuni.cz) |
| 7 | * |
| 8 | * Based upon preliminary work which is: |
| 9 | * |
| 10 | * Copyright (C) 1995 Adrian M. Rodriguez (adrian@remus.rutgers.edu) |
| 11 | */ |
| 12 | |
Firoz Khan | 3680033 | 2018-11-14 10:56:31 +0530 | [diff] [blame] | 13 | #define __SYSCALL(nr, entry, nargs) .word entry |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | .text |
| 15 | .align 4 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | #ifdef CONFIG_COMPAT |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | .globl sys_call_table32 |
| 18 | sys_call_table32: |
Firoz Khan | 3680033 | 2018-11-14 10:56:31 +0530 | [diff] [blame] | 19 | #include <asm/syscall_table_c32.h> /* Compat syscalls */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | #endif /* CONFIG_COMPAT */ |
| 21 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | .align 4 |
| 23 | .globl sys_call_table64, sys_call_table |
| 24 | sys_call_table64: |
| 25 | sys_call_table: |
Firoz Khan | 3680033 | 2018-11-14 10:56:31 +0530 | [diff] [blame] | 26 | #include <asm/syscall_table_64.h> /* 64-bit native syscalls */ |
| 27 | #undef __SYSCALL |