4 * Common tail-handling code for system calls. Because of __syscalldecl
5 * we are using the stack even on if we are compiling with regparm.
7 * The arguments are on the stack; the system call number in %eax.
10 #define ARG(n) (4*n+20)(%esp)
14 .globl __syscall_common
15 .type __syscall_common,@function
34 movl ARG(0),%ebx # Syscall arguments
52 # Error return, must set errno
55 orl $-1,%eax # Return -1
60 .size __syscall_common,.-__syscall_common