implement inline 5- and 6-argument syscalls for mipsn32 and mips64
[musl] / src / internal / x32 / syscall.s
1 .global __syscall
2 .hidden __syscall
3 .type __syscall,@function
4 __syscall:
5         movq %rdi,%rax
6         movq %rsi,%rdi
7         movq %rdx,%rsi
8         movq %rcx,%rdx
9         movq %r8,%r10
10         movq %r9,%r8
11         movq 8(%rsp),%r9
12         syscall
13         ret