blob: 5b905a2f4e4dfc0d803cc9796a4a08007f3200fb [file] [log] [blame]
Thomas Gleixner2874c5f2019-05-27 08:55:01 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Paul Mackerras9994a332005-10-10 22:36:14 +10002/*
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 Mackerras9994a332005-10-10 22:36:14 +100011 */
12
Paul Mackerras9994a332005-10-10 22:36:14 +100013#include <asm/ppc_asm.h>
14
Anton Blanchardc857c432014-02-04 16:05:53 +110015.section .rodata,"a"
16
Paul Mackerras9994a332005-10-10 22:36:14 +100017#ifdef CONFIG_PPC64
Stephen Rothwell46b45b12007-10-09 17:03:57 +100018 .p2align 3
Paul Mackerras9994a332005-10-10 22:36:14 +100019#endif
20
Anton Blanchardc857c432014-02-04 16:05:53 +110021.globl sys_call_table
22sys_call_table:
Firoz Khanab66dcc2018-12-17 16:10:36 +053023#ifdef CONFIG_PPC64
Firoz Khan6b1200f2019-01-02 20:32:03 +053024#define __SYSCALL(nr, entry) .8byte DOTSYM(entry)
Firoz Khanab66dcc2018-12-17 16:10:36 +053025#include <asm/syscall_table_64.h>
26#undef __SYSCALL
27#else
Firoz Khan6b1200f2019-01-02 20:32:03 +053028#define __SYSCALL(nr, entry) .long entry
Firoz Khanab66dcc2018-12-17 16:10:36 +053029#include <asm/syscall_table_32.h>
30#undef __SYSCALL
31#endif
Firoz Khanfbf508d2018-12-17 16:10:35 +053032
33#ifdef CONFIG_COMPAT
Firoz Khanfbf508d2018-12-17 16:10:35 +053034.globl compat_sys_call_table
35compat_sys_call_table:
Firoz Khana11b7632018-12-17 16:10:33 +053036#define compat_sys_sigsuspend sys_sigsuspend
Firoz Khan6b1200f2019-01-02 20:32:03 +053037#define __SYSCALL(nr, entry) .8byte DOTSYM(entry)
Firoz Khanab66dcc2018-12-17 16:10:36 +053038#include <asm/syscall_table_c32.h>
39#undef __SYSCALL
Firoz Khanfbf508d2018-12-17 16:10:35 +053040#endif