From: Willy Tarreau Date: Mon, 7 Feb 2022 16:23:13 +0000 (+0100) Subject: tools/nolibc: use pselect6 on RISCV X-Git-Tag: v6.1-rc5~1369^2~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9c2970fbb425cca0256ecf0f96490e4f253fda24;p=platform%2Fkernel%2Flinux-starfive.git tools/nolibc: use pselect6 on RISCV This arch doesn't provide the old-style select() syscall, we have to use pselect6(). Signed-off-by: Willy Tarreau Signed-off-by: Paul E. McKenney --- diff --git a/tools/include/nolibc/nolibc.h b/tools/include/nolibc/nolibc.h index c1c285f..ad23712 100644 --- a/tools/include/nolibc/nolibc.h +++ b/tools/include/nolibc/nolibc.h @@ -1256,7 +1256,10 @@ struct sys_stat_struct { * - the arguments are cast to long and assigned into the target * registers which are then simply passed as registers to the asm code, * so that we don't have to experience issues with register constraints. + * + * On riscv, select() is not implemented so we have to use pselect6(). */ +#define __ARCH_WANT_SYS_PSELECT6 #define my_syscall0(num) \ ({ \