blob: ee75ccf1a802b75831244071c828f3d7d0f6e825 [file] [log] [blame]
Paul Mackerras9994a332005-10-10 22:36:14 +10001/*
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 <linux/config.h>
18#include <asm/ppc_asm.h>
19
20#ifdef CONFIG_PPC64
21#define SYSCALL(func) .llong .sys_##func,.sys_##func
Paul Mackerras9994a332005-10-10 22:36:14 +100022#define COMPAT_SYS(func) .llong .sys_##func,.compat_sys_##func
23#define PPC_SYS(func) .llong .ppc_##func,.ppc_##func
24#define OLDSYS(func) .llong .sys_ni_syscall,.sys_ni_syscall
Stephen Rothwellb09a4912005-10-18 14:51:57 +100025#define SYS32ONLY(func) .llong .sys_ni_syscall,.compat_sys_##func
Paul Mackerras9994a332005-10-10 22:36:14 +100026#define SYSX(f, f3264, f32) .llong .f,.f3264
27#else
28#define SYSCALL(func) .long sys_##func
Paul Mackerras9994a332005-10-10 22:36:14 +100029#define COMPAT_SYS(func) .long sys_##func
30#define PPC_SYS(func) .long ppc_##func
31#define OLDSYS(func) .long sys_##func
32#define SYS32ONLY(func) .long sys_##func
33#define SYSX(f, f3264, f32) .long f32
34#endif
Andreas Schwab72abd542006-06-19 22:45:04 +020035#define SYSCALL_SPU(func) SYSCALL(func)
36#define COMPAT_SYS_SPU(func) COMPAT_SYS(func)
37#define PPC_SYS_SPU(func) PPC_SYS(func)
38#define SYSX_SPU(f, f3264, f32) SYSX(f, f3264, f32)
Paul Mackerras9994a332005-10-10 22:36:14 +100039
40#ifdef CONFIG_PPC64
41#define sys_sigpending sys_ni_syscall
42#define sys_old_getrlimit sys_ni_syscall
Paul Mackerras9994a332005-10-10 22:36:14 +100043#endif
44
45_GLOBAL(sys_call_table)
Andreas Schwab72abd542006-06-19 22:45:04 +020046#include <asm/systbl.h>