1#ifndef _ASM_METAG_SYSCALLS_H
2#define _ASM_METAG_SYSCALLS_H
3
4#include <linux/compiler.h>
5#include <linux/linkage.h>
6#include <linux/types.h>
7#include <linux/signal.h>
8
9/* kernel/signal.c */
10#define sys_rt_sigreturn sys_rt_sigreturn
11asmlinkage long sys_rt_sigreturn(void);
12
13#include <asm-generic/syscalls.h>
14
15/* kernel/sys_metag.c */
16asmlinkage int sys_metag_setglobalbit(char __user *, int);
17asmlinkage void sys_metag_set_fpu_flags(unsigned int);
18asmlinkage int sys_metag_set_tls(void __user *);
19asmlinkage void *sys_metag_get_tls(void);
20
21asmlinkage long sys_truncate64_metag(const char __user *, unsigned long,
22				     unsigned long);
23asmlinkage long sys_ftruncate64_metag(unsigned int, unsigned long,
24				      unsigned long);
25asmlinkage long sys_fadvise64_64_metag(int, unsigned long, unsigned long,
26				       unsigned long, unsigned long, int);
27asmlinkage long sys_readahead_metag(int, unsigned long, unsigned long, size_t);
28asmlinkage ssize_t sys_pread64_metag(unsigned long, char __user *, size_t,
29				     unsigned long, unsigned long);
30asmlinkage ssize_t sys_pwrite64_metag(unsigned long, char __user *, size_t,
31				      unsigned long, unsigned long);
32asmlinkage long sys_sync_file_range_metag(int, unsigned long, unsigned long,
33					  unsigned long, unsigned long,
34					  unsigned int);
35
36int do_work_pending(struct pt_regs *regs, unsigned int thread_flags,
37		    int syscall);
38
39#endif /* _ASM_METAG_SYSCALLS_H */
40