Bury the conditionals from kernel_thread/kernel_execve series
[profile/ivi/kernel-adaptation-intel-automotive.git] / arch / avr32 / include / asm / unistd.h
1 /*
2  * Copyright (C) 2004-2006 Atmel Corporation
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  */
8 #ifndef __ASM_AVR32_UNISTD_H
9 #define __ASM_AVR32_UNISTD_H
10
11 #include <uapi/asm/unistd.h>
12
13 #define NR_syscalls             284
14
15 /* Old stuff */
16 #define __IGNORE_uselib
17 #define __IGNORE_mmap
18
19 /* NUMA stuff */
20 #define __IGNORE_mbind
21 #define __IGNORE_get_mempolicy
22 #define __IGNORE_set_mempolicy
23 #define __IGNORE_migrate_pages
24 #define __IGNORE_move_pages
25
26 /* SMP stuff */
27 #define __IGNORE_getcpu
28
29 #define __ARCH_WANT_STAT64
30 #define __ARCH_WANT_SYS_ALARM
31 #define __ARCH_WANT_SYS_GETHOSTNAME
32 #define __ARCH_WANT_SYS_PAUSE
33 #define __ARCH_WANT_SYS_TIME
34 #define __ARCH_WANT_SYS_UTIME
35 #define __ARCH_WANT_SYS_WAITPID
36 #define __ARCH_WANT_SYS_FADVISE64
37 #define __ARCH_WANT_SYS_GETPGRP
38 #define __ARCH_WANT_SYS_LLSEEK
39 #define __ARCH_WANT_SYS_GETPGRP
40 #define __ARCH_WANT_SYS_RT_SIGACTION
41 #define __ARCH_WANT_SYS_RT_SIGSUSPEND
42 #define __ARCH_WANT_SYS_FORK
43 #define __ARCH_WANT_SYS_VFORK
44 #define __ARCH_WANT_SYS_CLONE
45
46 /*
47  * "Conditional" syscalls
48  *
49  * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
50  * but it doesn't work on all toolchains, so we just do it by hand
51  */
52 #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
53
54 #endif /* __ASM_AVR32_UNISTD_H */