Linux Audio

Check our new training course

Loading...
v5.14.15
 1/* SPDX-License-Identifier: GPL-2.0-or-later */
 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) 
 
 
 
 
 
11 */
12
13#include <asm/ppc_asm.h>
14
15.section .rodata,"a"
16
17#ifdef CONFIG_PPC64
18	.p2align	3
19#define __SYSCALL(nr, entry)	.8byte entry
 
 
 
 
20#else
21#define __SYSCALL(nr, entry)	.long entry
 
 
 
 
 
22#endif
 
 
 
 
23
24#define __SYSCALL_WITH_COMPAT(nr, native, compat)	__SYSCALL(nr, native)
25.globl sys_call_table
26sys_call_table:
27#ifdef CONFIG_PPC64
28#include <asm/syscall_table_64.h>
29#else
30#include <asm/syscall_table_32.h>
31#endif
32
33#ifdef CONFIG_COMPAT
34#undef __SYSCALL_WITH_COMPAT
35#define __SYSCALL_WITH_COMPAT(nr, native, compat)	__SYSCALL(nr, compat)
36.globl compat_sys_call_table
37compat_sys_call_table:
38#define compat_sys_sigsuspend	sys_sigsuspend
39#include <asm/syscall_table_32.h>
40#endif
v3.5.6
 
 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#ifdef CONFIG_PPC64
20#define SYSCALL(func)		.llong	.sys_##func,.sys_##func
21#define COMPAT_SYS(func)	.llong	.sys_##func,.compat_sys_##func
22#define PPC_SYS(func)		.llong	.ppc_##func,.ppc_##func
23#define OLDSYS(func)		.llong	.sys_ni_syscall,.sys_ni_syscall
24#define SYS32ONLY(func)		.llong	.sys_ni_syscall,.compat_sys_##func
25#define SYSX(f, f3264, f32)	.llong	.f,.f3264
26#else
27#define SYSCALL(func)		.long	sys_##func
28#define COMPAT_SYS(func)	.long	sys_##func
29#define PPC_SYS(func)		.long	ppc_##func
30#define OLDSYS(func)		.long	sys_##func
31#define SYS32ONLY(func)		.long	sys_##func
32#define SYSX(f, f3264, f32)	.long	f32
33#endif
34#define SYSCALL_SPU(func)	SYSCALL(func)
35#define COMPAT_SYS_SPU(func)	COMPAT_SYS(func)
36#define PPC_SYS_SPU(func)	PPC_SYS(func)
37#define SYSX_SPU(f, f3264, f32)	SYSX(f, f3264, f32)
38
 
 
 
39#ifdef CONFIG_PPC64
40#define sys_sigpending	sys_ni_syscall
41#define sys_old_getrlimit sys_ni_syscall
 
 
42
43	.p2align	3
 
 
 
 
 
 
44#endif
45
46_GLOBAL(sys_call_table)
47#include <asm/systbl.h>