add membarrier syscall wrapper, refactor dynamic tls install to use it
[musl] / src / internal / x86_64 / 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