blob: 4f97df87d7d54d970177f97e6d771fa518fb4bab [file] [log] [blame]
Paul Mundtfa439722008-09-04 18:53:58 +09001#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
10struct pt_regs;
11
Paul Mundtfa439722008-09-04 18:53:58 +090012asmlinkage int sys_sigreturn(unsigned long r4, unsigned long r5,
13 unsigned long r6, unsigned long r7,
14 struct pt_regs __regs);
15asmlinkage int sys_rt_sigreturn(unsigned long r4, unsigned long r5,
16 unsigned long r6, unsigned long r7,
17 struct pt_regs __regs);
Heiko Carstens11347232009-01-14 14:13:56 +010018asmlinkage int sys_sh_pipe(unsigned long r4, unsigned long r5,
19 unsigned long r6, unsigned long r7,
20 struct pt_regs __regs);
Paul Mundtfa439722008-09-04 18:53:58 +090021asmlinkage ssize_t sys_pread_wrapper(unsigned int fd, char __user *buf,
22 size_t count, long dummy, loff_t pos);
23asmlinkage ssize_t sys_pwrite_wrapper(unsigned int fd, const char __user *buf,
24 size_t count, long dummy, loff_t pos);
25asmlinkage int sys_fadvise64_64_wrapper(int fd, u32 offset0, u32 offset1,
26 u32 len0, u32 len1, int advice);
27
28/* Misc syscall related bits */
29asmlinkage long do_syscall_trace_enter(struct pt_regs *regs);
30asmlinkage void do_syscall_trace_leave(struct pt_regs *regs);
31asmlinkage void do_notify_resume(struct pt_regs *regs, unsigned int save_r0,
32 unsigned long thread_info_flags);
33
34#endif /* __KERNEL__ */
35#endif /* __ASM_SH_SYSCALLS_32_H */