blob: 15c0598e110938cf34b90df983f746efc27ceb94 [file] [log] [blame]
David Howells8a1ab312012-10-04 18:20:15 +01001#include <uapi/asm-generic/unistd.h>
Rusty Russellb92021b2013-03-15 15:04:17 +10302#include <linux/export.h>
Arnd Bergmanne64a1612009-05-13 22:56:28 +00003
4/*
5 * These are required system calls, we should
6 * invert the logic eventually and let them
7 * be selected by default.
8 */
9#if __BITS_PER_LONG == 32
10#define __ARCH_WANT_STAT64
11#define __ARCH_WANT_SYS_LLSEEK
12#endif
Arnd Bergmanne64a1612009-05-13 22:56:28 +000013
14/*
15 * "Conditional" syscalls
16 *
17 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
18 * but it doesn't work on all toolchains, so we just do it by hand
19 */
20#ifndef cond_syscall
Rusty Russellb92021b2013-03-15 15:04:17 +103021#define cond_syscall(x) asm(".weak\t" VMLINUX_SYMBOL_STR(x) "\n\t" \
22 ".set\t" VMLINUX_SYMBOL_STR(x) "," \
23 VMLINUX_SYMBOL_STR(sys_ni_syscall))
Arnd Bergmanne64a1612009-05-13 22:56:28 +000024#endif