0016-riscv32-Wire-new-syscalls.patch 985 B

123456789101112131415161718192021222324252627282930313233
  1. From 9fb8b132642520042ab4734ac1f0abce688bbea9 Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Fri, 30 Oct 2020 12:16:29 -0700
  4. Subject: [PATCH 16/16] riscv32: Wire new syscalls
  5. - add __NR_faccessat2 from linux v5.8
  6. - add pidfd_getfd and openat2 syscall numbers from linux v5.6
  7. - add clone3 syscall number from linux v5.3
  8. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  9. ---
  10. arch/riscv32/bits/syscall.h.in | 5 ++++-
  11. 1 file changed, 4 insertions(+), 1 deletion(-)
  12. diff --git a/arch/riscv32/bits/syscall.h.in b/arch/riscv32/bits/syscall.h.in
  13. index 852d2aaa..4b145fa3 100644
  14. --- a/arch/riscv32/bits/syscall.h.in
  15. +++ b/arch/riscv32/bits/syscall.h.in
  16. @@ -279,7 +279,10 @@
  17. #define __NR_fsmount 432
  18. #define __NR_fspick 433
  19. #define __NR_pidfd_open 434
  20. -
  21. +#define __NR_clone3 435
  22. +#define __NR_openat2 437
  23. +#define __NR_pidfd_getfd 438
  24. +#define __NR_faccessat2 439
  25. #define __NR_futex __NR_futex_time64
  26. #define __NR_sysriscv __NR_arch_specific_syscall
  27. --
  28. 2.29.2