summaryrefslogtreecommitdiff
path: root/src/internal/x86_64/syscall.s
blob: 931f44f6c072f12853e1e19b3d05f5ffd6ef2a6c (plain)
1
2
3
4
5
6
7
8
9
10
11
.global __syscall
__syscall:
	movq %rdi,%rax
	movq %rsi,%rdi
	movq %rdx,%rsi
	movq %rcx,%rdx
	movq %r8,%r10
	movq %r9,%r8
	movq 8(%rsp),%r9
	syscall
	ret