blob: dc4d5a931112ebe3b6bb9c9e32c7a81d434e1624 [file] [log] [blame]
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -07001/*
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
David Howells83b9d3a2012-10-10 12:09:31 +010011#include <uapi/asm/unistd.h>
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -070012
Eric W. Biederman7b21fdd2011-05-27 19:28:27 -070013#define NR_syscalls 284
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -070014
Haavard Skinnemoena7ff43b2007-09-22 23:31:39 +020015/* 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
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -070028
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -070029#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
Al Viro584271b2012-10-21 15:57:32 -040040#define __ARCH_WANT_SYS_FORK
41#define __ARCH_WANT_SYS_VFORK
42#define __ARCH_WANT_SYS_CLONE
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -070043
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
Haavard Skinnemoen5f97f7f2006-09-25 23:32:13 -070052#endif /* __ASM_AVR32_UNISTD_H */