linux-user: Update sh4 syscall definitions to match Linux 4.8
PATCH 1/1 linux-user: Update sh4 syscall definitions to match Linux 4.8
Hi!
While setting up a fresh Debian unstable sh4 chroot with qemu-sh4-user, I noticed the syscall definition table for sh4 is not up to date:
Setting up dh-strip-nondeterminism (0.029-2) ...
Setting up libgdk-pixbuf2.0-dev (2.36.3-1) ...
Setting up systemd (232-8) ...
qemu: Unsupported syscall: 373
Created symlink /etc/systemd/system/getty.target.wants/[email protected] → /lib/systemd/system/[email protected].
qemu: Unsupported syscall: 373
Created symlink /etc/systemd/system/multi-user.target.wants/remote-fs.target → /lib/systemd/system/remote-fs.target.
qemu: Unsupported syscall: 373
Created symlink /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service → /lib/systemd/system/systemd-timesyncd.service. Initializing machine ID from D-Bus machine ID.
addgroup: The group `systemd-journal' already exists as a system group. Exiting.
qemu: Unsupported syscall: 373
Setting up libgnome-keyring-dev (3.12.0-1) ...
Setting up libharfbuzz-dev:sh4 (1.2.7-1+b1) ...
Setting up dh-python (2.20160818) ...
This patch updates the syscall definition table to match kernel 4.8 which had syscalls 369 through 382 added.
Cheers,
Adrian
PATCH 1/1 linux-user: Update sh4 syscall definitions to match Linux 4.8
--- linux-user/sh4/syscall_nr.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
linux-user/sh4/syscall_nr.h +14 -0
@@ -372,3 +372,17 @@#define TARGET_NR_process_vm_writev 366#define TARGET_NR_kcmp 367#define TARGET_NR_finit_module 368 +#define TARGET_NR_sched_getattr 369 +#define TARGET_NR_sched_setattr 370 +#define TARGET_NR_renameat2 371 +#define TARGET_NR_seccomp 372 +#define TARGET_NR_getrandom 373 +#define TARGET_NR_memfd_create 374 +#define TARGET_NR_bpf 375 +#define TARGET_NR_execveat 376 +#define TARGET_NR_userfaultfd 377 +#define TARGET_NR_membarrier 378 +#define TARGET_NR_mlock2 379 +#define TARGET_NR_copy_file_range 380 +#define TARGET_NR_preadv2 381 +#define TARGET_NR_pwritev2 382
Signature · 1 line
2.11.0
Quoted 18 lines · John Paul Adrian Glaubitz
Signed-off-by John Paul Adrian Glaubitz <[email protected]>--- linux-user/sh4/syscall_nr.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+)linux-user/sh4/syscall_nr.h +4
-0@@ -372,3 +372,17 @@#define TARGET_NR_process_vm_writev 366#define TARGET_NR_kcmp 367#define TARGET_NR_finit_module 368 +#define TARGET_NR_sched_getattr 369 +#define TARGET_NR_sched_setattr 370 +#define TARGET_NR_renameat2 371 +#define TARGET_NR_seccomp 372
linux-user/sh4/syscall_nr.h line 388
Quoted 10 lines
linux-user/sh4/syscall_nr.h +10
-0+#define TARGET_NR_getrandom 373 +#define TARGET_NR_memfd_create 374 +#define TARGET_NR_bpf 375 +#define TARGET_NR_execveat 376 +#define TARGET_NR_userfaultfd 377 +#define TARGET_NR_membarrier 378 +#define TARGET_NR_mlock2 379 +#define TARGET_NR_copy_file_range 380 +#define TARGET_NR_preadv2 381 +#define TARGET_NR_pwritev2 382