Re: [PATCH v5 09/14] tools/nolibc: add missing my_syscall6() for mips

From: Willy Tarreau
Date: Sun Jul 02 2023 - 14:56:50 EST


Hi Zhangjin,

On Wed, Jun 28, 2023 at 09:37:29PM +0800, Zhangjin Wu wrote:
> 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().

Very interesting, I didn't manage to make it work previously. Did you
test it to confirm that it works ? I guess so but since you didn't
mention, I preferred to ask.

Thanks!
Willy