unified_syscall_i386.h 896 B

1234567891011121314151617181920212223242526272829303132333435
  1. #undef _syscall0
  2. #undef _syscall1
  3. #undef _syscall2
  4. #undef _syscall3
  5. #undef _syscall4
  6. #undef _syscall5
  7. #include "str_syscalls.h"
  8. #define unified_syscall_body(name) \
  9. __asm__ ( \
  10. ".text\n.align 4\n.global "###name"\n.type "###name",@function\n" \
  11. #name":\nmovb $"__STR_NR_##name \
  12. ",%al;\n jmp __uClibc_syscall\n.Lfe1"###name":\n.size "###name \
  13. ",.Lfe1"###name"-"###name \
  14. )
  15. #define _syscall0(type,name) \
  16. unified_syscall_body(name)
  17. #define _syscall1(type,name,type1,arg1) \
  18. unified_syscall_body(name)
  19. #define _syscall2(type,name,type1,arg1,type2,arg2) \
  20. unified_syscall_body(name)
  21. #define _syscall3(type,name,type1,arg1,type2,arg2,type3,arg3) \
  22. unified_syscall_body(name)
  23. #define _syscall4(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4) \
  24. unified_syscall_body(name)
  25. #define _syscall5(type,name,type1,arg1,type2,arg2,type3,arg3,type4,arg4,type5,arg5) \
  26. unified_syscall_body(name)