cc25485996bbca01f9772e93f4b923674d2e71e9
[linux-3.10.git] / arch / sh / include / asm / syscalls_32.h
1 #ifndef __ASM_SH_SYSCALLS_32_H
2 #define __ASM_SH_SYSCALLS_32_H
3
4 #ifdef __KERNEL__
5
6 #include <linux/compiler.h>
7 #include <linux/linkage.h>
8 #include <linux/types.h>
9
10 struct pt_regs;
11
12 asmlinkage int sys_sigsuspend(old_sigset_t mask);
13 asmlinkage int sys_sigaction(int sig, const struct old_sigaction __user *act,
14                              struct old_sigaction __user *oact);
15 asmlinkage int sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss,
16                                unsigned long r6, unsigned long r7,
17                                struct pt_regs __regs);
18 asmlinkage int sys_sigreturn(unsigned long r4, unsigned long r5,
19                              unsigned long r6, unsigned long r7,
20                              struct pt_regs __regs);
21 asmlinkage int sys_rt_sigreturn(unsigned long r4, unsigned long r5,
22                                 unsigned long r6, unsigned long r7,
23                                 struct pt_regs __regs);
24 asmlinkage int sys_sh_pipe(unsigned long r4, unsigned long r5,
25                            unsigned long r6, unsigned long r7,
26                            struct pt_regs __regs);
27 asmlinkage ssize_t sys_pread_wrapper(unsigned int fd, char __user *buf,
28                                      size_t count, long dummy, loff_t pos);
29 asmlinkage ssize_t sys_pwrite_wrapper(unsigned int fd, const char __user *buf,
30                                       size_t count, long dummy, loff_t pos);
31 asmlinkage int sys_fadvise64_64_wrapper(int fd, u32 offset0, u32 offset1,
32                                         u32 len0, u32 len1, int advice);
33
34 /* Misc syscall related bits */
35 asmlinkage long do_syscall_trace_enter(struct pt_regs *regs);
36 asmlinkage void do_syscall_trace_leave(struct pt_regs *regs);
37 asmlinkage void do_notify_resume(struct pt_regs *regs, unsigned int save_r0,
38                                  unsigned long thread_info_flags);
39
40 #endif /* __KERNEL__ */
41 #endif /* __ASM_SH_SYSCALLS_32_H */