seccomp.h 504 B

1234567891011121314151617181920
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_SECCOMP_H
  3. #define _ASM_SECCOMP_H
  4. #include <asm/unistd.h>
  5. #include <asm-generic/seccomp.h>
  6. #ifdef CONFIG_64BIT
  7. # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_RISCV64
  8. # define SECCOMP_ARCH_NATIVE_NR NR_syscalls
  9. # define SECCOMP_ARCH_NATIVE_NAME "riscv64"
  10. #else /* !CONFIG_64BIT */
  11. # define SECCOMP_ARCH_NATIVE AUDIT_ARCH_RISCV32
  12. # define SECCOMP_ARCH_NATIVE_NR NR_syscalls
  13. # define SECCOMP_ARCH_NATIVE_NAME "riscv32"
  14. #endif
  15. #endif /* _ASM_SECCOMP_H */