Linux Audio

Check our new training course

In-person Linux kernel drivers training

Jun 16-20, 2025
Register
Loading...
v4.6
 
 1/*
 2 * Copyright Altera Corporation (C) 2013. All rights reserved
 3 *
 4 * This program is free software; you can redistribute it and/or modify it
 5 * under the terms and conditions of the GNU General Public License,
 6 * version 2, as published by the Free Software Foundation.
 7 *
 8 * This program is distributed in the hope it will be useful, but WITHOUT
 9 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
11 * more details.
12 *
13 * You should have received a copy of the GNU General Public License along with
14 * this program.  If not, see <http://www.gnu.org/licenses/>.
15 *
16 */
17
18#include <linux/syscalls.h>
19#include <linux/signal.h>
20#include <linux/unistd.h>
21
22#include <asm/syscalls.h>
23
24#undef __SYSCALL
25#define __SYSCALL(nr, call) [nr] = (call),
 
 
 
26
27void *sys_call_table[__NR_syscalls] = {
28#include <asm/unistd.h>
 
29};
v6.13.7
 1// SPDX-License-Identifier: GPL-2.0-only
 2/*
 3 * Copyright Altera Corporation (C) 2013. All rights reserved
 
 
 
 
 
 
 
 
 
 
 
 
 
 4 */
 5
 6#include <linux/syscalls.h>
 7#include <linux/signal.h>
 8#include <linux/unistd.h>
 9
10#include <asm/syscalls.h>
11
 
12#define __SYSCALL(nr, call) [nr] = (call),
13#define __SYSCALL_WITH_COMPAT(nr, native, compat)        __SYSCALL(nr, native)
14
15#define sys_mmap2 sys_mmap_pgoff
16
17void *sys_call_table[__NR_syscalls] = {
18	[0 ... __NR_syscalls-1] = sys_ni_syscall,
19#include <asm/syscall_table_32.h>
20};