]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/avr32/include/asm/unistd.h
m32r: switch to generic sys_execve()
[mirror_ubuntu-bionic-kernel.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
43 /*
44 * "Conditional" syscalls
45 *
46 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
47 * but it doesn't work on all toolchains, so we just do it by hand
48 */
49 #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
50
51 #endif /* __ASM_AVR32_UNISTD_H */