1 #include <uapi/asm-generic/unistd.h>
2 #include <linux/export.h>
5 * These are required system calls, we should
6 * invert the logic eventually and let them
7 * be selected by default.
9 #if __BITS_PER_LONG == 32
10 #define __ARCH_WANT_STAT64
11 #define __ARCH_WANT_SYS_LLSEEK
15 * "Conditional" syscalls
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
21 #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))