Commit 26a3b85b authored by Arnd Bergmann's avatar Arnd Bergmann
Browse files

loongarch: convert to generic syscall table



The uapi/asm/unistd_64.h and asm/syscall_table_64.h headers can now be
generated from scripts/syscall.tbl, which makes this consistent with
the other architectures that have their own syscall.tbl.

Unlike the other architectures using the asm-generic header, loongarch
uses none of the deprecated system calls at the moment.

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: default avatarArnd Bergmann <arnd@arndb.de>
parent 36d69c29
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
syscall-y += syscall_table_64.h
generated-y += orc_hash.h

generic-y += mcs_spinlock.h
+2 −0
Original line number Diff line number Diff line
@@ -8,4 +8,6 @@

#include <uapi/asm/unistd.h>

#define __ARCH_WANT_SYS_CLONE

#define NR_syscalls (__NR_syscalls)
+2 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0
syscall-y += unistd_64.h

generic-y += kvm_para.h
+1 −2
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#define __ARCH_WANT_SYS_CLONE

#include <asm-generic/unistd.h>
#include <asm/unistd_64.h>
+4 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: GPL-2.0

# No special ABIs on loongarch so far
syscall_abis_64 +=
Loading