blob: 9f2b8e2f69d58eeb710b8894d26e89bbff16788a [file] [log] [blame]
Chris Metcalf867e3592010-05-28 23:09:12 -04001/*
2 * syscalls.h - Linux syscall interfaces (arch-specific)
3 *
4 * Copyright (c) 2008 Jaswinder Singh Rajput
5 * Copyright 2010 Tilera Corporation. All Rights Reserved.
6 *
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.
10 *
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
15 * more details.
16 */
17
18#ifndef _ASM_TILE_SYSCALLS_H
19#define _ASM_TILE_SYSCALLS_H
20
21#include <linux/compiler.h>
22#include <linux/linkage.h>
23#include <linux/signal.h>
24#include <linux/types.h>
Chris Metcalf139ef322010-06-07 08:48:13 -040025#include <asm-generic/syscalls.h>
Chris Metcalf867e3592010-05-28 23:09:12 -040026
27/* kernel/sys.c */
28ssize_t sys32_readahead(int fd, u32 offset_lo, u32 offset_hi, u32 count);
29long sys32_fadvise64(int fd, u32 offset_lo, u32 offset_hi,
30 u32 len, int advice);
31int sys32_fadvise64_64(int fd, u32 offset_lo, u32 offset_hi,
32 u32 len_lo, u32 len_hi, int advice);
33long sys_flush_cache(void);
Chris Metcalf867e3592010-05-28 23:09:12 -040034
35#ifndef __tilegx__
36/* mm/fault.c */
37int sys_cmpxchg_badaddr(unsigned long address, struct pt_regs *);
38#endif
39
40#endif /* _ASM_TILE_SYSCALLS_H */