David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [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) |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 11 | */ |
| 12 | |
| 13 | #include <asm/ppc_asm.h> |
| 14 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 15 | .section .rodata,"a" |
| 16 | |
| 17 | #ifdef CONFIG_PPC64 |
| 18 | .p2align 3 |
| 19 | #endif |
| 20 | |
| 21 | .globl sys_call_table |
| 22 | sys_call_table: |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 23 | #ifdef CONFIG_PPC64 |
| 24 | #define __SYSCALL(nr, entry) .8byte DOTSYM(entry) |
| 25 | #include <asm/syscall_table_64.h> |
| 26 | #undef __SYSCALL |
| 27 | #else |
| 28 | #define __SYSCALL(nr, entry) .long entry |
| 29 | #include <asm/syscall_table_32.h> |
| 30 | #undef __SYSCALL |
| 31 | #endif |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 32 | |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 33 | #ifdef CONFIG_COMPAT |
| 34 | .globl compat_sys_call_table |
| 35 | compat_sys_call_table: |
| 36 | #define compat_sys_sigsuspend sys_sigsuspend |
| 37 | #define __SYSCALL(nr, entry) .8byte DOTSYM(entry) |
| 38 | #include <asm/syscall_table_c32.h> |
| 39 | #undef __SYSCALL |
| 40 | #endif |