burying unused conditionals
[linux-3.10.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_FORK
41 #define __ARCH_WANT_SYS_VFORK
42 #define __ARCH_WANT_SYS_CLONE
43
44 /*
45  * "Conditional" syscalls
46  *
47  * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
48  * but it doesn't work on all toolchains, so we just do it by hand
49  */
50 #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
51
52 #endif /* __ASM_AVR32_UNISTD_H */