blob: 99e23937a31aa05c0efec1b44588584490130808 [file] [log] [blame]
Michal Simekdd0105a2009-03-27 14:25:46 +01001/*
2 * Copyright (C) 2007-2008 Michal Simek <monstr@monstr.eu>
3 * Copyright (C) 2006 Atmark Techno, Inc.
4 *
5 * This file is subject to the terms and conditions of the GNU General Public
6 * License. See the file "COPYING" in the main directory of this archive
7 * for more details.
8 */
Michal Simekdd0105a2009-03-27 14:25:46 +01009#ifndef _ASM_MICROBLAZE_UNISTD_H
10#define _ASM_MICROBLAZE_UNISTD_H
11
David Howells3cb0eab2012-10-09 09:47:10 +010012#include <uapi/asm/unistd.h>
Michal Simekdd0105a2009-03-27 14:25:46 +010013
Michal Simekdd0105a2009-03-27 14:25:46 +010014#ifndef __ASSEMBLY__
15
Michal Simekdd0105a2009-03-27 14:25:46 +010016/* #define __ARCH_WANT_OLD_READDIR */
17/* #define __ARCH_WANT_OLD_STAT */
18#define __ARCH_WANT_STAT64
19#define __ARCH_WANT_SYS_ALARM
20#define __ARCH_WANT_SYS_GETHOSTNAME
21#define __ARCH_WANT_SYS_PAUSE
22#define __ARCH_WANT_SYS_SGETMASK
23#define __ARCH_WANT_SYS_SIGNAL
24#define __ARCH_WANT_SYS_TIME
25#define __ARCH_WANT_SYS_UTIME
26#define __ARCH_WANT_SYS_WAITPID
27#define __ARCH_WANT_SYS_SOCKETCALL
28#define __ARCH_WANT_SYS_FADVISE64
29#define __ARCH_WANT_SYS_GETPGRP
30#define __ARCH_WANT_SYS_LLSEEK
31#define __ARCH_WANT_SYS_NICE
32/* #define __ARCH_WANT_SYS_OLD_GETRLIMIT */
33#define __ARCH_WANT_SYS_OLDUMOUNT
34#define __ARCH_WANT_SYS_SIGPENDING
35#define __ARCH_WANT_SYS_SIGPROCMASK
36#define __ARCH_WANT_SYS_RT_SIGACTION
Arnd Bergmann3183e062009-06-18 19:55:29 +020037#define __ARCH_WANT_SYS_RT_SIGSUSPEND
Al Viro5f6c4ab2012-10-10 13:11:01 -040038#define __ARCH_WANT_SYS_EXECVE
Al Virof3268ed2012-10-27 00:03:41 -040039#define __ARCH_WANT_SYS_CLONE
40#define __ARCH_WANT_SYS_VFORK
41#ifdef CONFIG_MMU
42#define __ARCH_WANT_SYS_FORK
43#endif
Michal Simekdd0105a2009-03-27 14:25:46 +010044
45/*
46 * "Conditional" syscalls
47 *
48 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
49 * but it doesn't work on all toolchains, so we just do it by hand
50 */
51#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
52
53#endif /* __ASSEMBLY__ */
Michal Simekdd0105a2009-03-27 14:25:46 +010054#endif /* _ASM_MICROBLAZE_UNISTD_H */