xref: /linux/arch/loongarch/include/asm/seccomp.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1*be769645SHuacai Chen /* SPDX-License-Identifier: GPL-2.0 */
2*be769645SHuacai Chen 
3*be769645SHuacai Chen #ifndef _ASM_SECCOMP_H
4*be769645SHuacai Chen #define _ASM_SECCOMP_H
5*be769645SHuacai Chen 
6*be769645SHuacai Chen #include <asm/unistd.h>
7*be769645SHuacai Chen 
8*be769645SHuacai Chen #include <asm-generic/seccomp.h>
9*be769645SHuacai Chen 
10*be769645SHuacai Chen #ifdef CONFIG_32BIT
11*be769645SHuacai Chen # define SECCOMP_ARCH_NATIVE		AUDIT_ARCH_LOONGARCH32
12*be769645SHuacai Chen # define SECCOMP_ARCH_NATIVE_NR		NR_syscalls
13*be769645SHuacai Chen # define SECCOMP_ARCH_NATIVE_NAME	"loongarch32"
14*be769645SHuacai Chen #else
15*be769645SHuacai Chen # define SECCOMP_ARCH_NATIVE		AUDIT_ARCH_LOONGARCH64
16*be769645SHuacai Chen # define SECCOMP_ARCH_NATIVE_NR		NR_syscalls
17*be769645SHuacai Chen # define SECCOMP_ARCH_NATIVE_NAME	"loongarch64"
18*be769645SHuacai Chen #endif
19*be769645SHuacai Chen 
20*be769645SHuacai Chen #endif /* _ASM_SECCOMP_H */
21