Util-Linux package development
 help / color / mirror / Atom feed
* [PATCH] enosys: add support for LoongArch
@ 2023-05-23  8:33 Enze Li
  2023-05-23  9:08 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Enze Li @ 2023-05-23  8:33 UTC (permalink / raw)
  To: util-linux; +Cc: Enze Li

Signed-off-by: Enze Li <lienze@kylinos.cn>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] enosys: add support for LoongArch
  2023-05-23  8:33 [PATCH] enosys: add support for LoongArch Enze Li
@ 2023-05-23  9:08 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2023-05-23  9:08 UTC (permalink / raw)
  To: Enze Li; +Cc: util-linux


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@kylinos.cn>
> ---
>  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@redhat.com>
 http://karelzak.blogspot.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-05-23  9:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-23  8:33 [PATCH] enosys: add support for LoongArch Enze Li
2023-05-23  9:08 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox