David Howells | 8a1ab31 | 2012-10-04 18:20:15 +0100 | [diff] [blame] | 1 | #include <uapi/asm-generic/unistd.h> |
Rusty Russell | b92021b | 2013-03-15 15:04:17 +1030 | [diff] [blame^] | 2 | #include <linux/export.h> |
Arnd Bergmann | e64a1617 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 3 | |
| 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 Bergmann | e64a1617 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 13 | |
| 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 Russell | b92021b | 2013-03-15 15:04:17 +1030 | [diff] [blame^] | 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)) |
Arnd Bergmann | e64a1617 | 2009-05-13 22:56:28 +0000 | [diff] [blame] | 24 | #endif |