0001
0002 #ifndef __ASM_SECCOMP_H
0003
0004 #include <linux/unistd.h>
0005
0006 #ifdef CONFIG_COMPAT
0007 static inline const int *get_compat_mode1_syscalls(void)
0008 {
0009 static const int syscalls_O32[] = {
0010 __NR_O32_Linux + 3, __NR_O32_Linux + 4,
0011 __NR_O32_Linux + 1, __NR_O32_Linux + 193,
0012 -1,
0013 };
0014 static const int syscalls_N32[] = {
0015 __NR_N32_Linux + 0, __NR_N32_Linux + 1,
0016 __NR_N32_Linux + 58, __NR_N32_Linux + 211,
0017 -1,
0018 };
0019
0020 if (IS_ENABLED(CONFIG_MIPS32_O32) && test_thread_flag(TIF_32BIT_REGS))
0021 return syscalls_O32;
0022
0023 if (IS_ENABLED(CONFIG_MIPS32_N32))
0024 return syscalls_N32;
0025
0026 BUG();
0027 }
0028
0029 #define get_compat_mode1_syscalls get_compat_mode1_syscalls
0030
0031 #endif
0032
0033 #include <asm-generic/seccomp.h>
0034
0035 #endif