initial commit with v3.6.7
[linux-3.6.7-moxart.git] / arch / sh / include / asm / syscalls_32.h
blob6c1fa559753c10b6f8f4d1d78d10492d7c318cc1
1 #ifndef __ASM_SH_SYSCALLS_32_H
2 #define __ASM_SH_SYSCALLS_32_H
4 #ifdef __KERNEL__
6 #include <linux/compiler.h>
7 #include <linux/linkage.h>
8 #include <linux/types.h>
10 struct pt_regs;
12 asmlinkage int sys_fork(unsigned long r4, unsigned long r5,
13 unsigned long r6, unsigned long r7,
14 struct pt_regs __regs);
15 asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp,
16 unsigned long parent_tidptr,
17 unsigned long child_tidptr,
18 struct pt_regs __regs);
19 asmlinkage int sys_vfork(unsigned long r4, unsigned long r5,
20 unsigned long r6, unsigned long r7,
21 struct pt_regs __regs);
22 asmlinkage int sys_execve(const char __user *ufilename,
23 const char __user *const __user *uargv,
24 const char __user *const __user *uenvp,
25 unsigned long r7, struct pt_regs __regs);
26 asmlinkage int sys_sigsuspend(old_sigset_t mask);
27 asmlinkage int sys_sigaction(int sig, const struct old_sigaction __user *act,
28 struct old_sigaction __user *oact);
29 asmlinkage int sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss,
30 unsigned long r6, unsigned long r7,
31 struct pt_regs __regs);
32 asmlinkage int sys_sigreturn(unsigned long r4, unsigned long r5,
33 unsigned long r6, unsigned long r7,
34 struct pt_regs __regs);
35 asmlinkage int sys_rt_sigreturn(unsigned long r4, unsigned long r5,
36 unsigned long r6, unsigned long r7,
37 struct pt_regs __regs);
38 asmlinkage int sys_sh_pipe(unsigned long r4, unsigned long r5,
39 unsigned long r6, unsigned long r7,
40 struct pt_regs __regs);
41 asmlinkage ssize_t sys_pread_wrapper(unsigned int fd, char __user *buf,
42 size_t count, long dummy, loff_t pos);
43 asmlinkage ssize_t sys_pwrite_wrapper(unsigned int fd, const char __user *buf,
44 size_t count, long dummy, loff_t pos);
45 asmlinkage int sys_fadvise64_64_wrapper(int fd, u32 offset0, u32 offset1,
46 u32 len0, u32 len1, int advice);
48 /* Misc syscall related bits */
49 asmlinkage long do_syscall_trace_enter(struct pt_regs *regs);
50 asmlinkage void do_syscall_trace_leave(struct pt_regs *regs);
51 asmlinkage void do_notify_resume(struct pt_regs *regs, unsigned int save_r0,
52 unsigned long thread_info_flags);
54 #endif /* __KERNEL__ */
55 #endif /* __ASM_SH_SYSCALLS_32_H */