diff options
author | Xiaotian Wu <wuxiaotian@loongson.cn> | 2021-02-09 15:39:13 +0800 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2023-02-18 22:07:30 -0500 |
commit | 6966ec77b195ac289ae168c7c5646d59a307f33f (patch) | |
tree | daa4e9a4febf1e891195a61c608b6fc0155967ff /tools/util.h | |
parent | 315f7b9ec6d8992035a2c0f652949ee34843db32 (diff) | |
download | libseccomp-6966ec77b195ac289ae168c7c5646d59a307f33f.tar.gz |
arch: Add 64-bit LoongArch support
Signed-off-by: Xiaotian Wu <wuxiaotian@loongson.cn>
Signed-off-by: WANG Xuerui <git@xen0n.name>
Acked-by: Tom Hromatka <tom.hromatka@oracle.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'tools/util.h')
-rw-r--r-- | tools/util.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tools/util.h b/tools/util.h index 6c2ca33..24b9ed6 100644 --- a/tools/util.h +++ b/tools/util.h @@ -38,6 +38,17 @@ #endif /* AUDIT_ARCH_AARCH64 */ /** + * The 64-bit LoongArch architecture tokens + */ +/* 64-bit LoongArch audit support is upstream as of 5.19-rc1 */ +#ifndef AUDIT_ARCH_LOONGARCH64 +#ifndef EM_LOONGARCH +#define EM_LOONGARCH 258 +#endif /* EM_LOONGARCH */ +#define AUDIT_ARCH_LOONGARCH64 (EM_LOONGARCH|__AUDIT_ARCH_64BIT|__AUDIT_ARCH_LE) +#endif /* AUDIT_ARCH_LOONGARCH64 */ + +/** * The MIPS architecture tokens */ #ifndef __AUDIT_ARCH_CONVENTION_MIPS64_N32 |