mirror of https://gitee.com/openkylin/linux.git
52 lines
1.3 KiB
C
52 lines
1.3 KiB
C
/*
|
|
* Copyright (C) 2004-2006 Atmel Corporation
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*/
|
|
#ifndef __ASM_AVR32_UNISTD_H
|
|
#define __ASM_AVR32_UNISTD_H
|
|
|
|
#include <uapi/asm/unistd.h>
|
|
|
|
#define NR_syscalls 284
|
|
|
|
/* Old stuff */
|
|
#define __IGNORE_uselib
|
|
#define __IGNORE_mmap
|
|
|
|
/* NUMA stuff */
|
|
#define __IGNORE_mbind
|
|
#define __IGNORE_get_mempolicy
|
|
#define __IGNORE_set_mempolicy
|
|
#define __IGNORE_migrate_pages
|
|
#define __IGNORE_move_pages
|
|
|
|
/* SMP stuff */
|
|
#define __IGNORE_getcpu
|
|
|
|
#define __ARCH_WANT_STAT64
|
|
#define __ARCH_WANT_SYS_ALARM
|
|
#define __ARCH_WANT_SYS_GETHOSTNAME
|
|
#define __ARCH_WANT_SYS_PAUSE
|
|
#define __ARCH_WANT_SYS_TIME
|
|
#define __ARCH_WANT_SYS_UTIME
|
|
#define __ARCH_WANT_SYS_WAITPID
|
|
#define __ARCH_WANT_SYS_FADVISE64
|
|
#define __ARCH_WANT_SYS_GETPGRP
|
|
#define __ARCH_WANT_SYS_LLSEEK
|
|
#define __ARCH_WANT_SYS_GETPGRP
|
|
#define __ARCH_WANT_SYS_RT_SIGACTION
|
|
#define __ARCH_WANT_SYS_RT_SIGSUSPEND
|
|
|
|
/*
|
|
* "Conditional" syscalls
|
|
*
|
|
* What we want is __attribute__((weak,alias("sys_ni_syscall"))),
|
|
* but it doesn't work on all toolchains, so we just do it by hand
|
|
*/
|
|
#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
|
|
|
|
#endif /* __ASM_AVR32_UNISTD_H */
|