1 #ifndef __ASM_SH_SYSCALLS_32_H
2 #define __ASM_SH_SYSCALLS_32_H
6 #include <linux/compiler.h>
7 #include <linux/linkage.h>
8 #include <linux/types.h>
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
, unsigned long r5
,
27 unsigned long r6
, unsigned long r7
,
28 struct pt_regs __regs
);
29 asmlinkage
int sys_sigaction(int sig
, const struct old_sigaction __user
*act
,
30 struct old_sigaction __user
*oact
);
31 asmlinkage
int sys_sigaltstack(const stack_t __user
*uss
, stack_t __user
*uoss
,
32 unsigned long r6
, unsigned long r7
,
33 struct pt_regs __regs
);
34 asmlinkage
int sys_sigreturn(unsigned long r4
, unsigned long r5
,
35 unsigned long r6
, unsigned long r7
,
36 struct pt_regs __regs
);
37 asmlinkage
int sys_rt_sigreturn(unsigned long r4
, unsigned long r5
,
38 unsigned long r6
, unsigned long r7
,
39 struct pt_regs __regs
);
40 asmlinkage
int sys_sh_pipe(unsigned long r4
, unsigned long r5
,
41 unsigned long r6
, unsigned long r7
,
42 struct pt_regs __regs
);
43 asmlinkage ssize_t
sys_pread_wrapper(unsigned int fd
, char __user
*buf
,
44 size_t count
, long dummy
, loff_t pos
);
45 asmlinkage ssize_t
sys_pwrite_wrapper(unsigned int fd
, const char __user
*buf
,
46 size_t count
, long dummy
, loff_t pos
);
47 asmlinkage
int sys_fadvise64_64_wrapper(int fd
, u32 offset0
, u32 offset1
,
48 u32 len0
, u32 len1
, int advice
);
50 /* Misc syscall related bits */
51 asmlinkage
long do_syscall_trace_enter(struct pt_regs
*regs
);
52 asmlinkage
void do_syscall_trace_leave(struct pt_regs
*regs
);
53 asmlinkage
void do_notify_resume(struct pt_regs
*regs
, unsigned int save_r0
,
54 unsigned long thread_info_flags
);
56 #endif /* __KERNEL__ */
57 #endif /* __ASM_SH_SYSCALLS_32_H */