2 * arch/x86-64/syscall.S
4 * Common tail-handling code for system calls.
6 * The arguments are in the standard argument registers; the system
11 .globl __syscall_common
12 .type __syscall_common,@function
14 movq %rcx,%r10 # The kernel uses %r10 istf %rcx
21 # Error return, must set errno
24 movl %eax,errno(%rip) # errno is type int, so 32 bits
25 orq $-1,%rax # orq $-1 smaller than movq $-1
28 .size __syscall_common,.-__syscall_common