]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/xtensa/include/asm/unistd.h
Bury the conditionals from kernel_thread/kernel_execve series
[mirror_ubuntu-zesty-kernel.git] / arch / xtensa / include / asm / unistd.h
CommitLineData
2f72d4f6
CZ
1#ifndef _XTENSA_UNISTD_H
2#define _XTENSA_UNISTD_H
9a8fd558 3
3e41f9ba 4#define __ARCH_WANT_SYS_CLONE
83596729 5#include <uapi/asm/unistd.h>
9a8fd558 6
9a8fd558
CZ
7/*
8 * "Conditional" syscalls
9 *
10 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
11 * but it doesn't work on all toolchains, so we just do it by hand
12 */
13#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall");
14
9a8fd558 15#define __ARCH_WANT_STAT64
9a8fd558 16#define __ARCH_WANT_SYS_UTIME
9a8fd558 17#define __ARCH_WANT_SYS_LLSEEK
9a8fd558 18#define __ARCH_WANT_SYS_RT_SIGACTION
fc4fb2ad 19#define __ARCH_WANT_SYS_RT_SIGSUSPEND
3547cdb1 20#define __ARCH_WANT_SYS_GETPGRP
fd43fe19 21
3547cdb1
CZ
22/*
23 * Ignore legacy system calls in the checksyscalls.sh script
24 */
9a8fd558 25
3547cdb1
CZ
26#define __IGNORE_fork /* use clone */
27#define __IGNORE_time
28#define __IGNORE_alarm /* use setitimer */
29#define __IGNORE_pause
30#define __IGNORE_mmap /* use mmap2 */
31#define __IGNORE_vfork /* use clone */
32#define __IGNORE_fadvise64 /* use fadvise64_64 */
2f72d4f6
CZ
33
34#endif /* _XTENSA_UNISTD_H */