mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 16:44:10 +08:00
4414ad8eb4
The uapi/asm/unistd_32.h and asm/syscall_table_32.h headers can now be generated from scripts/syscall.tbl, which makes this consistent with the other architectures that have their own syscall.tbl. arc has a couple of architecture specific system calls, which I add to the generic table. This for some reason includes the deprecated sys_sysfs() syscall that was presumably added by accident. The time32, renameat, stat64 and rlimit entries in the syscall_abis_32 entry are for system calls that were part of the generic ABI when arch/arc got added but are no longer enabled by default for new architectures. Both the user visible side of asm/unistd.h and the internal syscall table in the kernel should have the same effective contents after this. Signed-off-by: Arnd Bergmann <arnd@arndb.de>
20 lines
486 B
C
20 lines
486 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
#include <linux/syscalls.h>
|
|
#include <linux/signal.h>
|
|
#include <linux/unistd.h>
|
|
|
|
#include <asm/syscalls.h>
|
|
|
|
#define sys_clone sys_clone_wrapper
|
|
#define sys_clone3 sys_clone3_wrapper
|
|
#define sys_mmap2 sys_mmap_pgoff
|
|
|
|
#define __SYSCALL(nr, call) [nr] = (call),
|
|
#define __SYSCALL_WITH_COMPAT(nr, native, compat) __SYSCALL(nr, native)
|
|
|
|
void *sys_call_table[NR_syscalls] = {
|
|
[0 ... NR_syscalls-1] = sys_ni_syscall,
|
|
#include <asm/syscall_table_32.h>
|
|
};
|