xref: /openbmc/linux/arch/sh/include/asm/syscalls_32.h (revision abafe5d9)
1fa43972fSPaul Mundt #ifndef __ASM_SH_SYSCALLS_32_H
2fa43972fSPaul Mundt #define __ASM_SH_SYSCALLS_32_H
3fa43972fSPaul Mundt 
4fa43972fSPaul Mundt #ifdef __KERNEL__
5fa43972fSPaul Mundt 
6fa43972fSPaul Mundt #include <linux/compiler.h>
7fa43972fSPaul Mundt #include <linux/linkage.h>
8fa43972fSPaul Mundt #include <linux/types.h>
9fa43972fSPaul Mundt 
10fa43972fSPaul Mundt struct pt_regs;
11fa43972fSPaul Mundt 
12abafe5d9SBobby Bingham asmlinkage int sys_sigreturn(void);
13abafe5d9SBobby Bingham asmlinkage int sys_rt_sigreturn(void);
14abafe5d9SBobby Bingham asmlinkage int sys_sh_pipe(void);
15fa43972fSPaul Mundt asmlinkage ssize_t sys_pread_wrapper(unsigned int fd, char __user *buf,
16fa43972fSPaul Mundt 				     size_t count, long dummy, loff_t pos);
17fa43972fSPaul Mundt asmlinkage ssize_t sys_pwrite_wrapper(unsigned int fd, const char __user *buf,
18fa43972fSPaul Mundt 				      size_t count, long dummy, loff_t pos);
19fa43972fSPaul Mundt asmlinkage int sys_fadvise64_64_wrapper(int fd, u32 offset0, u32 offset1,
20fa43972fSPaul Mundt 					u32 len0, u32 len1, int advice);
21fa43972fSPaul Mundt 
22fa43972fSPaul Mundt /* Misc syscall related bits */
23fa43972fSPaul Mundt asmlinkage long do_syscall_trace_enter(struct pt_regs *regs);
24fa43972fSPaul Mundt asmlinkage void do_syscall_trace_leave(struct pt_regs *regs);
25fa43972fSPaul Mundt asmlinkage void do_notify_resume(struct pt_regs *regs, unsigned int save_r0,
26fa43972fSPaul Mundt 				 unsigned long thread_info_flags);
27fa43972fSPaul Mundt 
28fa43972fSPaul Mundt #endif /* __KERNEL__ */
29fa43972fSPaul Mundt #endif /* __ASM_SH_SYSCALLS_32_H */
30