[PATCH v2] microblaze: Use the correct select syscall (BZ #28883)

Mark Hatle mark.hatle@kernel.crashing.org
Wed Feb 16 17:11:52 GMT 2022


acked-by: Mark Hatle <mark.hatle@xilinx.com>

This looks like a good alternative solution to me and will resolve the issue.

On 2/16/22 10:55 AM, Adhemerval Zanella wrote:
> On Microblaze only __NR_newselect is implemented, even though kernel
> advertise __NR_select on asm/unistd.h.  Since microblaze is the
> only architecture that undef __ASSUME_PSELECT, the generic code
> change is simpler than chaging the architecture syscall number.
> ---
>   sysdeps/unix/sysv/linux/select.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sysdeps/unix/sysv/linux/select.c b/sysdeps/unix/sysv/linux/select.c
> index 3bc8b0cc3d..a3f0a2eba7 100644
> --- a/sysdeps/unix/sysv/linux/select.c
> +++ b/sysdeps/unix/sysv/linux/select.c
> @@ -108,7 +108,7 @@ __select64 (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
>         ptv32 = &tv32;
>       }
>   
> -  int r = SYSCALL_CANCEL (select, nfds, readfds, writefds, exceptfds, ptv32);
> +  int r = SYSCALL_CANCEL (_newselect, nfds, readfds, writefds, exceptfds, ptv32);
>     if (timeout != NULL)
>       *timeout = valid_timeval_to_timeval64 (tv32);
>     return r;


More information about the Libc-alpha mailing list