2 * syscalls.h - Linux syscall interfaces (arch-specific)
4 * Copyright (c) 2008 Jaswinder Singh Rajput
5 * Copyright 2010 Tilera Corporation. All Rights Reserved.
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, version 2.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
14 * NON INFRINGEMENT. See the GNU General Public License for
18 #ifndef _ASM_TILE_SYSCALLS_H
19 #define _ASM_TILE_SYSCALLS_H
21 #include <linux/compiler.h>
22 #include <linux/linkage.h>
23 #include <linux/signal.h>
24 #include <linux/types.h>
26 /* kernel/process.c */
27 int sys_fork(struct pt_regs *);
28 int sys_vfork(struct pt_regs *);
29 int sys_clone(unsigned long clone_flags, unsigned long newsp,
30 int __user *parent_tidptr, int __user *child_tidptr,
32 int sys_execve(char __user *path, char __user *__user *argv,
33 char __user *__user *envp, struct pt_regs *);
36 int sys_sigaltstack(const stack_t __user *, stack_t __user *,
38 long sys_rt_sigreturn(struct pt_regs *);
39 int sys_raise_fpe(int code, unsigned long addr, struct pt_regs*);
42 ssize_t sys32_readahead(int fd, u32 offset_lo, u32 offset_hi, u32 count);
43 long sys32_fadvise64(int fd, u32 offset_lo, u32 offset_hi,
45 int sys32_fadvise64_64(int fd, u32 offset_lo, u32 offset_hi,
46 u32 len_lo, u32 len_hi, int advice);
47 long sys_flush_cache(void);
48 long sys_mmap(unsigned long addr, unsigned long len,
49 unsigned long prot, unsigned long flags,
50 unsigned long fd, unsigned long offset);
51 long sys_mmap2(unsigned long addr, unsigned long len,
52 unsigned long prot, unsigned long flags,
53 unsigned long fd, unsigned long offset);
57 int sys_cmpxchg_badaddr(unsigned long address, struct pt_regs *);
60 #endif /* _ASM_TILE_SYSCALLS_H */