Commit | Line | Data |
---|---|---|
293c5bd1 RB |
1 | #ifndef __ASM_SECCOMP_H |
2 | ||
293c5bd1 RB |
3 | #include <linux/unistd.h> |
4 | ||
b1b4fad5 MR |
5 | #ifdef CONFIG_COMPAT |
6 | static inline const int *get_compat_mode1_syscalls(void) | |
7 | { | |
8 | static const int syscalls_O32[] = { | |
9 | __NR_O32_Linux + 3, __NR_O32_Linux + 4, | |
10 | __NR_O32_Linux + 1, __NR_O32_Linux + 193, | |
11 | 0, /* null terminated */ | |
12 | }; | |
13 | static const int syscalls_N32[] = { | |
14 | __NR_N32_Linux + 0, __NR_N32_Linux + 1, | |
15 | __NR_N32_Linux + 58, __NR_N32_Linux + 211, | |
16 | 0, /* null terminated */ | |
17 | }; | |
18 | ||
97f2645f | 19 | if (IS_ENABLED(CONFIG_MIPS32_O32) && test_thread_flag(TIF_32BIT_REGS)) |
b1b4fad5 MR |
20 | return syscalls_O32; |
21 | ||
97f2645f | 22 | if (IS_ENABLED(CONFIG_MIPS32_N32)) |
b1b4fad5 MR |
23 | return syscalls_N32; |
24 | ||
25 | BUG(); | |
26 | } | |
27 | ||
28 | #define get_compat_mode1_syscalls get_compat_mode1_syscalls | |
29 | ||
30 | #endif /* CONFIG_COMPAT */ | |
293c5bd1 | 31 | |
97247fd9 KC |
32 | #include <asm-generic/seccomp.h> |
33 | ||
293c5bd1 | 34 | #endif /* __ASM_SECCOMP_H */ |