[S390] arch_setup_additional_pages arguments
[linux-2.6] / 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_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(char __user *ufilename, char __user * __user *uargv,
23                           char __user * __user *uenvp, unsigned long r7,
24                           struct pt_regs __regs);
25 asmlinkage int sys_sigsuspend(old_sigset_t mask, unsigned long r5,
26                               unsigned long r6, unsigned long r7,
27                               struct pt_regs __regs);
28 asmlinkage int sys_sigaction(int sig, const struct old_sigaction __user *act,
29                              struct old_sigaction __user *oact);
30 asmlinkage int sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss,
31                                unsigned long r6, unsigned long r7,
32                                struct pt_regs __regs);
33 asmlinkage int sys_sigreturn(unsigned long r4, unsigned long r5,
34                              unsigned long r6, unsigned long r7,
35                              struct pt_regs __regs);
36 asmlinkage int sys_rt_sigreturn(unsigned long r4, unsigned long r5,
37                                 unsigned long r6, unsigned long r7,
38                                 struct pt_regs __regs);
39 asmlinkage int sys_pipe(unsigned long r4, unsigned long r5,
40                         unsigned long r6, unsigned long r7,
41                         struct pt_regs __regs);
42 asmlinkage ssize_t sys_pread_wrapper(unsigned int fd, char __user *buf,
43                                      size_t count, long dummy, loff_t pos);
44 asmlinkage ssize_t sys_pwrite_wrapper(unsigned int fd, const char __user *buf,
45                                       size_t count, long dummy, loff_t pos);
46 asmlinkage int sys_fadvise64_64_wrapper(int fd, u32 offset0, u32 offset1,
47                                         u32 len0, u32 len1, int advice);
48
49 /* Misc syscall related bits */
50 asmlinkage long do_syscall_trace_enter(struct pt_regs *regs);
51 asmlinkage void do_syscall_trace_leave(struct pt_regs *regs);
52 asmlinkage void do_notify_resume(struct pt_regs *regs, unsigned int save_r0,
53                                  unsigned long thread_info_flags);
54
55 #endif /* __KERNEL__ */
56 #endif /* __ASM_SH_SYSCALLS_32_H */