riscv: Add the clone3 wrapper
commita1950a07583f63f220f30ba7d99ceb619b80ecce
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 28 Sep 2022 02:49:24 +0000 (27 23:49 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 29 May 2023 20:39:57 +0000 (29 17:39 -0300)
tree773d288f9e318941df15d9e16ba1649ce0fb79d8
parent33d7c0e1cb712a3b7ea46d7f88569721805bc2db
riscv: Add the clone3 wrapper

It follows the internal signature:

  extern int clone3 (struct clone_args *__cl_args, size_t __size,
 int (*__func) (void *__arg), void *__arg);

Checked on riscv64-linux-gnu-rv64imafdc-lp64d.

Reviewed-by: Palmer Dabbelt <palmer@rivosinc.com>
sysdeps/unix/sysv/linux/riscv/clone3.S [new file with mode: 0644]
sysdeps/unix/sysv/linux/riscv/sysdep.h