syscalls.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * syscalls.h - Linux syscall interfaces (arch-specific)
  3. *
  4. * Copyright (c) 2008 Jaswinder Singh Rajput
  5. *
  6. * This file is released under the GPLv2.
  7. * See the file COPYING for more details.
  8. */
  9. #ifndef _ASM_X86_SYSCALLS_H
  10. #define _ASM_X86_SYSCALLS_H
  11. #include <linux/compiler.h>
  12. #include <linux/linkage.h>
  13. #include <linux/signal.h>
  14. #include <linux/types.h>
  15. /* Common in X86_32 and X86_64 */
  16. /* kernel/ioport.c */
  17. asmlinkage long sys_ioperm(unsigned long, unsigned long, int);
  18. asmlinkage long sys_iopl(unsigned int);
  19. /* kernel/ldt.c */
  20. asmlinkage int sys_modify_ldt(int, void __user *, unsigned long);
  21. /* kernel/signal.c */
  22. asmlinkage long sys_rt_sigreturn(void);
  23. /* kernel/tls.c */
  24. asmlinkage long sys_set_thread_area(struct user_desc __user *);
  25. asmlinkage long sys_get_thread_area(struct user_desc __user *);
  26. /* X86_32 only */
  27. #ifdef CONFIG_X86_32
  28. /* kernel/signal.c */
  29. asmlinkage unsigned long sys_sigreturn(void);
  30. /* kernel/vm86_32.c */
  31. struct vm86_struct;
  32. asmlinkage long sys_vm86old(struct vm86_struct __user *);
  33. asmlinkage long sys_vm86(unsigned long, unsigned long);
  34. #else /* CONFIG_X86_32 */
  35. /* X86_64 only */
  36. /* kernel/process_64.c */
  37. asmlinkage long sys_arch_prctl(int, unsigned long);
  38. /* kernel/sys_x86_64.c */
  39. asmlinkage long sys_mmap(unsigned long, unsigned long, unsigned long,
  40. unsigned long, unsigned long, unsigned long);
  41. #endif /* CONFIG_X86_32 */
  42. #endif /* _ASM_X86_SYSCALLS_H */