summaryrefslogtreecommitdiff
path: root/src/internal/x86_64/syscall.s
blob: 7bec7291d4f3ab1d8a32ce26d7cec8cae40f94d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.global __syscall
.type __syscall,%function
__syscall:
di,si,dx,cx,r8,r9
	movq %rdi,%rax
	movq %rsi,%rdi
	movq %rdx,%rsi
	movq %rcx,%rdx
	movq %r8,%r10
	movq %r9,%r8
	movq 8(%rsp),%r9
	syscall
	ret
.size __syscall,.-__syscall