[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 2/4] linux-user, aarch64: sync syscall numbers with kernel
From: |
Richard Henderson |
Subject: |
Re: [PATCH v2 2/4] linux-user, aarch64: sync syscall numbers with kernel v5.5 |
Date: |
Sun, 15 Mar 2020 16:03:26 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 3/14/20 4:39 AM, Laurent Vivier wrote:
> Use helper script scripts/gensyscalls.sh to generate the file.
>
> This change TARGET_NR_fstatat64 by TARGET_NR_newfstatat that is correct
> because definitions from linux are:
>
> arch/arm64/include/uapi/asm/unistd.h
>
> #define __ARCH_WANT_NEW_STAT
>
> include/uapi/asm-generic/unistd.h
>
> #if defined(__ARCH_WANT_NEW_STAT) || defined(__ARCH_WANT_STAT64)
> #define __NR3264_fstatat 79
> __SC_3264(__NR3264_fstatat, sys_fstatat64, sys_newfstatat)
> #define __NR3264_fstat 80
> __SC_3264(__NR3264_fstat, sys_fstat64, sys_newfstat)
> #endif
> ...
> #if __BITS_PER_LONG == 64 && !defined(__SYSCALL_COMPAT)
> ...
> #if defined(__ARCH_WANT_NEW_STAT) || defined(__ARCH_WANT_STAT64)
> #define __NR_newfstatat __NR3264_fstatat
> #define __NR_fstat __NR3264_fstat
> #endif
> ...
>
> Add syscalls 286 (preadv2) to 435 (clone3).
>
> Signed-off-by: Laurent Vivier <address@hidden>
> Reviewed-by: Alistair Francis <address@hidden>
> ---
>
> Notes:
> v2: add comments suggested by Taylor
Reviewed-by: Richard Henderson <address@hidden>
r~
- [PATCH v2 0/4] linux-user: generate syscall_nr.h from linux unistd.h, Laurent Vivier, 2020/03/14
- [PATCH v2 1/4] scripts: add a script to generate syscall_nr.h, Laurent Vivier, 2020/03/14
- [PATCH v2 3/4] linux-user, nios2: sync syscall numbers with kernel v5.5, Laurent Vivier, 2020/03/14
- [PATCH v2 2/4] linux-user, aarch64: sync syscall numbers with kernel v5.5, Laurent Vivier, 2020/03/14
- Re: [PATCH v2 2/4] linux-user, aarch64: sync syscall numbers with kernel v5.5,
Richard Henderson <=
- [PATCH v2 4/4] linux-user, openrisc: sync syscall numbers with kernel v5.5, Laurent Vivier, 2020/03/14
- Re: [PATCH v2 0/4] linux-user: generate syscall_nr.h from linux unistd.h, no-reply, 2020/03/14