]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blob - arch/powerpc/kernel/systbl.S
openrisc: prefer memblock APIs returning virtual address
[mirror_ubuntu-focal-kernel.git] / arch / powerpc / kernel / systbl.S
1 /*
2 * This file contains the table of syscall-handling functions.
3 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
4 *
5 * Largely rewritten by Cort Dougan (cort@cs.nmt.edu)
6 * and Paul Mackerras.
7 *
8 * Adapted for iSeries by Mike Corrigan (mikejc@us.ibm.com)
9 * PPC64 updates by Dave Engebretsen (engebret@us.ibm.com)
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version
14 * 2 of the License, or (at your option) any later version.
15 */
16
17 #include <asm/ppc_asm.h>
18
19 .section .rodata,"a"
20
21 #ifdef CONFIG_PPC64
22 .p2align 3
23 #endif
24
25 .globl sys_call_table
26 sys_call_table:
27 #ifdef CONFIG_PPC64
28 #define __SYSCALL(nr, entry) .8byte DOTSYM(entry)
29 #include <asm/syscall_table_64.h>
30 #undef __SYSCALL
31 #else
32 #define __SYSCALL(nr, entry) .long entry
33 #include <asm/syscall_table_32.h>
34 #undef __SYSCALL
35 #endif
36
37 #ifdef CONFIG_COMPAT
38 .globl compat_sys_call_table
39 compat_sys_call_table:
40 #define compat_sys_sigsuspend sys_sigsuspend
41 #define __SYSCALL(nr, entry) .8byte DOTSYM(entry)
42 #include <asm/syscall_table_c32.h>
43 #undef __SYSCALL
44 #endif