syscalls.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /*
  2. * syscalls.h - Linux syscall interfaces (arch-specific)
  3. *
  4. * Copyright (c) 2008 Jaswinder Singh Rajput
  5. * Copyright 2010 Tilera Corporation. All Rights Reserved.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation, version 2.
  10. *
  11. * This program is distributed in the hope that it will be useful, but
  12. * WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
  14. * NON INFRINGEMENT. See the GNU General Public License for
  15. * more details.
  16. */
  17. #ifndef _ASM_TILE_SYSCALLS_H
  18. #define _ASM_TILE_SYSCALLS_H
  19. #include <linux/compiler.h>
  20. #include <linux/linkage.h>
  21. #include <linux/signal.h>
  22. #include <linux/types.h>
  23. #include <linux/compat.h>
  24. /*
  25. * Note that by convention, any syscall which requires the current
  26. * register set takes an additional "struct pt_regs *" pointer; a
  27. * _sys_xxx() trampoline in intvec*.S just sets up the pointer and
  28. * jumps to sys_xxx().
  29. */
  30. /* kernel/sys.c */
  31. ssize_t sys32_readahead(int fd, u32 offset_lo, u32 offset_hi, u32 count);
  32. long sys32_fadvise64(int fd, u32 offset_lo, u32 offset_hi,
  33. u32 len, int advice);
  34. int sys32_fadvise64_64(int fd, u32 offset_lo, u32 offset_hi,
  35. u32 len_lo, u32 len_hi, int advice);
  36. long sys_cacheflush(unsigned long addr, unsigned long len,
  37. unsigned long flags);
  38. #ifndef __tilegx__ /* No mmap() in the 32-bit kernel. */
  39. #define sys_mmap sys_mmap
  40. #endif
  41. #ifndef __tilegx__
  42. /* mm/fault.c */
  43. long sys_cmpxchg_badaddr(unsigned long address);
  44. #endif
  45. #ifdef CONFIG_COMPAT
  46. /* These four are not defined for 64-bit, but serve as "compat" syscalls. */
  47. long sys_fcntl64(unsigned int fd, unsigned int cmd, unsigned long arg);
  48. long sys_fstat64(unsigned long fd, struct stat64 __user *statbuf);
  49. long sys_truncate64(const char __user *path, loff_t length);
  50. long sys_ftruncate64(unsigned int fd, loff_t length);
  51. #endif
  52. /* Provide versions of standard syscalls that use current_pt_regs(). */
  53. long sys_rt_sigreturn(void);
  54. #define sys_rt_sigreturn sys_rt_sigreturn
  55. /* These are the intvec*.S trampolines. */
  56. long _sys_rt_sigreturn(void);
  57. long _sys_clone(unsigned long clone_flags, unsigned long newsp,
  58. void __user *parent_tid, void __user *child_tid);
  59. #include <asm-generic/syscalls.h>
  60. #endif /* _ASM_TILE_SYSCALLS_H */