Commit | Line | Data |
---|---|---|
2874c5fd | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
9994a338 PM |
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) | |
9994a338 PM |
11 | */ |
12 | ||
9994a338 PM |
13 | #include <asm/ppc_asm.h> |
14 | ||
c857c43b AB |
15 | .section .rodata,"a" |
16 | ||
9994a338 | 17 | #ifdef CONFIG_PPC64 |
46b45b10 | 18 | .p2align 3 |
9994a338 PM |
19 | #endif |
20 | ||
c857c43b AB |
21 | .globl sys_call_table |
22 | sys_call_table: | |
ab66dcc7 | 23 | #ifdef CONFIG_PPC64 |
6b1200fa | 24 | #define __SYSCALL(nr, entry) .8byte DOTSYM(entry) |
ab66dcc7 FK |
25 | #include <asm/syscall_table_64.h> |
26 | #undef __SYSCALL | |
27 | #else | |
6b1200fa | 28 | #define __SYSCALL(nr, entry) .long entry |
ab66dcc7 FK |
29 | #include <asm/syscall_table_32.h> |
30 | #undef __SYSCALL | |
31 | #endif | |
c857c43b | 32 | |
fbf508da | 33 | #ifdef CONFIG_COMPAT |
fbf508da FK |
34 | .globl compat_sys_call_table |
35 | compat_sys_call_table: | |
a11b763d | 36 | #define compat_sys_sigsuspend sys_sigsuspend |
6b1200fa | 37 | #define __SYSCALL(nr, entry) .8byte DOTSYM(entry) |
ab66dcc7 FK |
38 | #include <asm/syscall_table_c32.h> |
39 | #undef __SYSCALL | |
fbf508da | 40 | #endif |