Thomas Gleixner | 2874c5f | 2019-05-27 08:55:01 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Paul Mackerras | 9994a33 | 2005-10-10 22:36:14 +1000 | [diff] [blame] | 2 | /* |
| 3 | * This file contains the table of syscall-handling functions. |
| 4 | * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) |
| 5 | * |
| 6 | * Largely rewritten by Cort Dougan (cort@cs.nmt.edu) |
| 7 | * and Paul Mackerras. |
| 8 | * |
| 9 | * Adapted for iSeries by Mike Corrigan (mikejc@us.ibm.com) |
| 10 | * PPC64 updates by Dave Engebretsen (engebret@us.ibm.com) |
Paul Mackerras | 9994a33 | 2005-10-10 22:36:14 +1000 | [diff] [blame] | 11 | */ |
| 12 | |
Paul Mackerras | 9994a33 | 2005-10-10 22:36:14 +1000 | [diff] [blame] | 13 | #include <asm/ppc_asm.h> |
| 14 | |
Anton Blanchard | c857c43 | 2014-02-04 16:05:53 +1100 | [diff] [blame] | 15 | .section .rodata,"a" |
| 16 | |
Paul Mackerras | 9994a33 | 2005-10-10 22:36:14 +1000 | [diff] [blame] | 17 | #ifdef CONFIG_PPC64 |
Stephen Rothwell | 46b45b1 | 2007-10-09 17:03:57 +1000 | [diff] [blame] | 18 | .p2align 3 |
Paul Mackerras | 9994a33 | 2005-10-10 22:36:14 +1000 | [diff] [blame] | 19 | #endif |
| 20 | |
Anton Blanchard | c857c43 | 2014-02-04 16:05:53 +1100 | [diff] [blame] | 21 | .globl sys_call_table |
| 22 | sys_call_table: |
Firoz Khan | ab66dcc | 2018-12-17 16:10:36 +0530 | [diff] [blame] | 23 | #ifdef CONFIG_PPC64 |
Firoz Khan | 6b1200f | 2019-01-02 20:32:03 +0530 | [diff] [blame] | 24 | #define __SYSCALL(nr, entry) .8byte DOTSYM(entry) |
Firoz Khan | ab66dcc | 2018-12-17 16:10:36 +0530 | [diff] [blame] | 25 | #include <asm/syscall_table_64.h> |
| 26 | #undef __SYSCALL |
| 27 | #else |
Firoz Khan | 6b1200f | 2019-01-02 20:32:03 +0530 | [diff] [blame] | 28 | #define __SYSCALL(nr, entry) .long entry |
Firoz Khan | ab66dcc | 2018-12-17 16:10:36 +0530 | [diff] [blame] | 29 | #include <asm/syscall_table_32.h> |
| 30 | #undef __SYSCALL |
| 31 | #endif |
Firoz Khan | fbf508d | 2018-12-17 16:10:35 +0530 | [diff] [blame] | 32 | |
| 33 | #ifdef CONFIG_COMPAT |
Firoz Khan | fbf508d | 2018-12-17 16:10:35 +0530 | [diff] [blame] | 34 | .globl compat_sys_call_table |
| 35 | compat_sys_call_table: |
Firoz Khan | a11b763 | 2018-12-17 16:10:33 +0530 | [diff] [blame] | 36 | #define compat_sys_sigsuspend sys_sigsuspend |
Firoz Khan | 6b1200f | 2019-01-02 20:32:03 +0530 | [diff] [blame] | 37 | #define __SYSCALL(nr, entry) .8byte DOTSYM(entry) |
Firoz Khan | ab66dcc | 2018-12-17 16:10:36 +0530 | [diff] [blame] | 38 | #include <asm/syscall_table_c32.h> |
| 39 | #undef __SYSCALL |
Firoz Khan | fbf508d | 2018-12-17 16:10:35 +0530 | [diff] [blame] | 40 | #endif |