__uClibc_syscall.S 452 B

123456789101112131415161718192021222324252627282930
  1. .text
  2. .align 4
  3. .globl __uClibc_syscall
  4. .type __uClibc_syscall,@function
  5. __uClibc_syscall:
  6. pushl %edi
  7. pushl %esi
  8. pushl %ebx
  9. and $0xff,%eax
  10. movl 16(%esp),%ebx
  11. movl 20(%esp),%ecx
  12. movl 24(%esp),%edx
  13. movl 28(%esp),%esi
  14. movl 32(%esp),%edi
  15. #APP
  16. int $0x80
  17. #NO_APP
  18. cmpl $-4095,%eax
  19. jbe .L5
  20. negl %eax
  21. movl %eax,errno
  22. movl $-1,%eax
  23. .p2align 4,,7
  24. .L5:
  25. popl %ebx
  26. popl %esi
  27. popl %edi
  28. ret
  29. .Lfe1:
  30. .size __uClibc_syscall,.Lfe1-__uClibc_syscall