2 * Copyright (C) 2004-2006 Atmel Corporation
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.
8 #ifndef __ASM_AVR32_UNISTD_H
9 #define __ASM_AVR32_UNISTD_H
11 #include <uapi/asm/unistd.h>
13 #define NR_syscalls 284
16 #define __IGNORE_uselib
20 #define __IGNORE_mbind
21 #define __IGNORE_get_mempolicy
22 #define __IGNORE_set_mempolicy
23 #define __IGNORE_migrate_pages
24 #define __IGNORE_move_pages
27 #define __IGNORE_getcpu
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_EXECVE
43 #define __ARCH_WANT_SYS_FORK
44 #define __ARCH_WANT_SYS_VFORK
45 #define __ARCH_WANT_SYS_CLONE
48 * "Conditional" syscalls
50 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
51 * but it doesn't work on all toolchains, so we just do it by hand
53 #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
55 #endif /* __ASM_AVR32_UNISTD_H */