> Yes, for regular function calls,
> but at least in the case of NetBSD,
> not for syscalls.

Those are the registers Linux uses for system calls on MIPS.
They are documented as such here:

https://www.man7.org/linux/man-pages/man2/syscall.2.html

> The second table shows the registers used
> to pass the system call arguments.
>
> ...
>
> mips/o32       a0    a1    a2    a3
> mips/n32,64    a0    a1    a2    a3    a4    a5
>
> ...

So they match the normal function calling convention? That's neat.
I don't have much experience with MIPS so I didn't recognize it.
I'm not sure how NetBSD does system calls but I know the ABI
is not considered stable.

Reply via email to