overhaul syscall interface
[musl] / src / internal / x86_64 / syscall.s
1 .global __syscall
2 .type __syscall,%function
3 __syscall:
4 di,si,dx,cx,r8,r9
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
14 .size __syscall,.-__syscall