Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Paul Mundt | fa43972 | 2008-09-04 18:53:58 +0900 | [diff] [blame] | 2 | #ifndef __ASM_SH_SYSCALLS_32_H |
| 3 | #define __ASM_SH_SYSCALLS_32_H |
| 4 | |
| 5 | #ifdef __KERNEL__ |
| 6 | |
| 7 | #include <linux/compiler.h> |
| 8 | #include <linux/linkage.h> |
| 9 | #include <linux/types.h> |
| 10 | |
| 11 | struct pt_regs; |
| 12 | |
Bobby Bingham | abafe5d | 2014-04-03 14:46:39 -0700 | [diff] [blame] | 13 | asmlinkage int sys_sigreturn(void); |
| 14 | asmlinkage int sys_rt_sigreturn(void); |
| 15 | asmlinkage int sys_sh_pipe(void); |
Paul Mundt | fa43972 | 2008-09-04 18:53:58 +0900 | [diff] [blame] | 16 | asmlinkage ssize_t sys_pread_wrapper(unsigned int fd, char __user *buf, |
| 17 | size_t count, long dummy, loff_t pos); |
| 18 | asmlinkage ssize_t sys_pwrite_wrapper(unsigned int fd, const char __user *buf, |
| 19 | size_t count, long dummy, loff_t pos); |
| 20 | asmlinkage int sys_fadvise64_64_wrapper(int fd, u32 offset0, u32 offset1, |
| 21 | u32 len0, u32 len1, int advice); |
| 22 | |
| 23 | /* Misc syscall related bits */ |
| 24 | asmlinkage long do_syscall_trace_enter(struct pt_regs *regs); |
| 25 | asmlinkage void do_syscall_trace_leave(struct pt_regs *regs); |
| 26 | asmlinkage void do_notify_resume(struct pt_regs *regs, unsigned int save_r0, |
| 27 | unsigned long thread_info_flags); |
| 28 | |
| 29 | #endif /* __KERNEL__ */ |
| 30 | #endif /* __ASM_SH_SYSCALLS_32_H */ |