blob: c4bee804ffa3008c6ec76aff3c4e407b4554cac4 [file] [log] [blame]
rofl0r323272d2014-01-07 22:43:34 +01001.global __syscall
Rich Felker7405cd12015-04-14 13:48:20 -04002.hidden __syscall
rofl0r323272d2014-01-07 22:43:34 +01003.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