Re: [PATCH] enosys: add support for LoongArch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Please, see https://github.com/util-linux/util-linux/pull/2260, Thomas
wants to move all this to include/audit-arch.h

    Karel


On Tue, May 23, 2023 at 04:33:56PM +0800, Enze Li wrote:
> Signed-off-by: Enze Li <lienze@xxxxxxxxxx>
> ---
>  misc-utils/enosys.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/misc-utils/enosys.c b/misc-utils/enosys.c
> index 02978c20a..9facbcb53 100644
> --- a/misc-utils/enosys.c
> +++ b/misc-utils/enosys.c
> @@ -70,6 +70,12 @@
>  #    else
>  # 	 define SECCOMP_ARCH_NATIVE AUDIT_ARCH_ARCV2
>  #    endif
> +#elif __loongarch__
> +#    if _LOONGARCH_SZPTR == 32
> +# 	 define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH32
> +#    elif _LOONGARCH_SZPTR == 64
> +# 	 define SECCOMP_ARCH_NATIVE AUDIT_ARCH_LOONGARCH64
> +#    endif
>  #else
>  #    error Unknown target architecture
>  #endif
> 
> base-commit: fe0b1e793c9017edba72768e2e0b4c769c204604
> -- 
> 2.34.1
> 

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
 http://karelzak.blogspot.com




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux