12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
-
- .text
- .align 4
- .globl syscall
- .type syscall,@function
- syscall:
- pushl %edi
- pushl %esi
- pushl %ebx
- movl 36(%esp),%edi;
- movl 32(%esp),%esi;
- movl 28(%esp),%edx;
- movl 24(%esp),%ecx;
- movl 20(%esp),%ebx;
- movl 16(%esp),%eax
- #APP
- int $0x80
- #NO_APP
- cmpl $-4095,%eax
- jbe .Ldone
- #ifdef PIC
- call Lhere
- Lhere:
- popl %ebx
- addl $_GLOBAL_OFFSET_TABLE_+[.-Lhere],%ebx
- negl %eax
- movl %eax,%ecx
- #ifdef __UCLIBC_HAS_THREADS__
- call __errno_location@PLT
- #else
- movl errno@GOT(%ebx),%eax
- #endif
- movl %ecx,(%eax)
- #else
- negl %eax
- #ifdef __UCLIBC_HAS_THREADS__
- movl %eax,%ecx
- call __errno_location
- movl %ecx,(%eax)
- #else
- movl %eax,errno
- #endif
- #endif
- movl $-1,%eax
- .p2align 4,,7
- .Ldone:
- popl %ebx
- popl %esi
- popl %edi
- ret
- .Lsize:
- .size syscall,.Lsize-syscall
|