xref: /openbmc/linux/arch/parisc/include/asm/seccomp.h (revision c4f7ac64)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 #ifndef _ASM_SECCOMP_H
3 #define _ASM_SECCOMP_H
4 
5 #include <asm-generic/seccomp.h>
6 
7 #ifdef CONFIG_64BIT
8 # define SECCOMP_ARCH_NATIVE		AUDIT_ARCH_PARISC64
9 # define SECCOMP_ARCH_NATIVE_NR		NR_syscalls
10 # define SECCOMP_ARCH_NATIVE_NAME	"parisc64"
11 # ifdef CONFIG_COMPAT
12 #  define SECCOMP_ARCH_COMPAT		AUDIT_ARCH_PARISC
13 #  define SECCOMP_ARCH_COMPAT_NR	NR_syscalls
14 #  define SECCOMP_ARCH_COMPAT_NAME	"parisc"
15 # endif
16 #else /* !CONFIG_64BIT */
17 # define SECCOMP_ARCH_NATIVE		AUDIT_ARCH_PARISC
18 # define SECCOMP_ARCH_NATIVE_NR		NR_syscalls
19 # define SECCOMP_ARCH_NATIVE_NAME	"parisc"
20 #endif
21 
22 #endif /* _ASM_SECCOMP_H */
23