tools/nolibc: add missing my_syscall6() for mips
authorZhangjin Wu <falcon@tinylab.org>
Fri, 7 Jul 2023 14:55:35 +0000 (22:55 +0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2023 02:38:02 +0000 (04:38 +0200)
commit6d1970e1efc8696bc8c4b8d36c9680882cb2c849
treed047875c996dd1e0746af5e4f5cd8302b42a949b
parent8b9bdab635870e44fd0684be6e70056201f7bc0c
tools/nolibc: add missing my_syscall6() for mips

It is able to pass the 6th argument like the 5th argument via the stack
for mips, let's add a new my_syscall6() now, see [1] for details:

  The mips/o32 system call convention passes arguments 5 through 8 on
  the user stack.

Both mmap() and pselect6() require my_syscall6().

[1]: https://man7.org/linux/man-pages/man2/syscall.2.html

Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
tools/include/nolibc/arch-mips.h
tools/include/nolibc/nolibc.h