blob: b3778391d9cc6eb8513e590c0af79890cefc0ba8 [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
Al Virof3268ed2012-10-27 00:03:41 -040036#define __ARCH_WANT_SYS_CLONE
37#define __ARCH_WANT_SYS_VFORK
Al Virof3268ed2012-10-27 00:03:41 -040038#define __ARCH_WANT_SYS_FORK
Michal Simekdd0105a2009-03-27 14:25:46 +010039
40/*
41 * "Conditional" syscalls
42 *
43 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
44 * but it doesn't work on all toolchains, so we just do it by hand
45 */
46#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
47
48#endif /* __ASSEMBLY__ */
Michal Simekdd0105a2009-03-27 14:25:46 +010049#endif /* _ASM_MICROBLAZE_UNISTD_H */