Michal Simek | dd0105a | 2009-03-27 14:25:46 +0100 | [diff] [blame] | 1 | /* |
| 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 Simek | dd0105a | 2009-03-27 14:25:46 +0100 | [diff] [blame] | 9 | #ifndef _ASM_MICROBLAZE_UNISTD_H |
| 10 | #define _ASM_MICROBLAZE_UNISTD_H |
| 11 | |
David Howells | 3cb0eab | 2012-10-09 09:47:10 +0100 | [diff] [blame^] | 12 | #include <uapi/asm/unistd.h> |
Michal Simek | dd0105a | 2009-03-27 14:25:46 +0100 | [diff] [blame] | 13 | |
Michal Simek | dd0105a | 2009-03-27 14:25:46 +0100 | [diff] [blame] | 14 | #ifndef __ASSEMBLY__ |
| 15 | |
Michal Simek | dd0105a | 2009-03-27 14:25:46 +0100 | [diff] [blame] | 16 | /* #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 Bergmann | 3183e06 | 2009-06-18 19:55:29 +0200 | [diff] [blame] | 37 | #define __ARCH_WANT_SYS_RT_SIGSUSPEND |
Al Viro | 5f6c4ab | 2012-10-10 13:11:01 -0400 | [diff] [blame] | 38 | #define __ARCH_WANT_SYS_EXECVE |
Al Viro | f3268ed | 2012-10-27 00:03:41 -0400 | [diff] [blame] | 39 | #define __ARCH_WANT_SYS_CLONE |
| 40 | #define __ARCH_WANT_SYS_VFORK |
| 41 | #ifdef CONFIG_MMU |
| 42 | #define __ARCH_WANT_SYS_FORK |
| 43 | #endif |
Michal Simek | dd0105a | 2009-03-27 14:25:46 +0100 | [diff] [blame] | 44 | |
| 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 Simek | dd0105a | 2009-03-27 14:25:46 +0100 | [diff] [blame] | 54 | #endif /* _ASM_MICROBLAZE_UNISTD_H */ |