^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #ifndef _ASM_SECCOMP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) #define _ASM_SECCOMP_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) #include <asm/unistd.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #include <asm-generic/seccomp.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #ifdef CONFIG_64BIT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_RISCV64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) # define SECCOMP_ARCH_NATIVE_NR NR_syscalls
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) # define SECCOMP_ARCH_NATIVE_NAME "riscv64"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) #else /* !CONFIG_64BIT */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_RISCV32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) # define SECCOMP_ARCH_NATIVE_NR NR_syscalls
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) # define SECCOMP_ARCH_NATIVE_NAME "riscv32"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #endif /* _ASM_SECCOMP_H */