1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __ASM_SECCOMP_H
4 #include <linux/unistd.h>
7 static inline const int *get_compat_mode1_syscalls(void)
9 static const int syscalls_O32
[] = {
10 __NR_O32_Linux
+ 3, __NR_O32_Linux
+ 4,
11 __NR_O32_Linux
+ 1, __NR_O32_Linux
+ 193,
12 0, /* null terminated */
14 static const int syscalls_N32
[] = {
15 __NR_N32_Linux
+ 0, __NR_N32_Linux
+ 1,
16 __NR_N32_Linux
+ 58, __NR_N32_Linux
+ 211,
17 0, /* null terminated */
20 if (IS_ENABLED(CONFIG_MIPS32_O32
) && test_thread_flag(TIF_32BIT_REGS
))
23 if (IS_ENABLED(CONFIG_MIPS32_N32
))
29 #define get_compat_mode1_syscalls get_compat_mode1_syscalls
31 #endif /* CONFIG_COMPAT */
33 #include <asm-generic/seccomp.h>
35 #endif /* __ASM_SECCOMP_H */