From 5281a1975c4fa4be87e76b2f77b14eb3e9432a0e Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Fri, 20 Sep 2024 17:10:31 +0200 Subject: linux-user,riscv: move to syscalltbl file Since kernel v6.11 riscv has moved from syscall_nr.h file to syscall.tbl (3db80c999deb ("riscv: convert to generic syscall table")) Update linux-user scripts to be able to retrieve syscall numbers from linux syscall.tbl instead of syscall_nr.h. New syscall.tbl is imported from linux v6.11 using updated scripts/update-syscalltbl.sh Signed-off-by: Laurent Vivier Message-ID: <20240920151034.859533-4-laurent@vivier.eu> Signed-off-by: Richard Henderson --- scripts/gensyscalls.sh | 2 -- scripts/update-syscalltbl.sh | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/gensyscalls.sh b/scripts/gensyscalls.sh index 68de3f1..babbc61 100755 --- a/scripts/gensyscalls.sh +++ b/scripts/gensyscalls.sh @@ -93,8 +93,6 @@ generate_syscall_nr() mkdir "$TMP/asm" > "$TMP/asm/bitsperlong.h" -generate_syscall_nr riscv 32 "$output/linux-user/riscv/syscall32_nr.h" -generate_syscall_nr riscv 64 "$output/linux-user/riscv/syscall64_nr.h" generate_syscall_nr hexagon 32 "$output/linux-user/hexagon/syscall_nr.h" generate_syscall_nr loongarch 64 "$output/linux-user/loongarch64/syscall_nr.h" rm -fr "$TMP" diff --git a/scripts/update-syscalltbl.sh b/scripts/update-syscalltbl.sh index c3f898f..cf3ea1d 100755 --- a/scripts/update-syscalltbl.sh +++ b/scripts/update-syscalltbl.sh @@ -10,6 +10,7 @@ arch/mips/kernel/syscalls/syscall_o32.tbl,linux-user/mips/syscall_o32.tbl \ scripts/syscall.tbl,linux-user/openrisc/syscall.tbl \ arch/parisc/kernel/syscalls/syscall.tbl,linux-user/hppa/syscall.tbl \ arch/powerpc/kernel/syscalls/syscall.tbl,linux-user/ppc/syscall.tbl \ +scripts/syscall.tbl,linux-user/riscv/syscall.tbl \ arch/s390/kernel/syscalls/syscall.tbl,linux-user/s390x/syscall.tbl \ arch/sh/kernel/syscalls/syscall.tbl,linux-user/sh4/syscall.tbl \ arch/sparc/kernel/syscalls/syscall.tbl,linux-user/sparc64/syscall.tbl \ -- cgit v1.1