Loading...
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * OpenRISC sys_call_table.c
4 *
5 * Linux architectural port borrowing liberally from similar works of
6 * others. All original copyrights apply as per the original source
7 * declaration.
8 *
9 * Modifications for the OpenRISC architecture:
10 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
11 */
12
13#include <linux/syscalls.h>
14#include <linux/signal.h>
15#include <linux/unistd.h>
16
17#include <asm/syscalls.h>
18
19#undef __SYSCALL
20#define __SYSCALL(nr, call) [nr] = (call),
21
22void *sys_call_table[__NR_syscalls] = {
23#include <asm/unistd.h>
24};
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * OpenRISC sys_call_table.c
4 *
5 * Linux architectural port borrowing liberally from similar works of
6 * others. All original copyrights apply as per the original source
7 * declaration.
8 *
9 * Modifications for the OpenRISC architecture:
10 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
11 */
12
13#include <linux/syscalls.h>
14#include <linux/signal.h>
15#include <linux/unistd.h>
16
17#include <asm/syscalls.h>
18
19#define __SYSCALL(nr, call) [nr] = (call),
20#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native)
21
22#define sys_mmap2 sys_mmap_pgoff
23#define sys_clone __sys_clone
24#define sys_clone3 __sys_clone3
25#define sys_fork __sys_fork
26
27void *sys_call_table[__NR_syscalls] = {
28#include <asm/syscall_table_32.h>
29};