diff mbox series

[RFC,v2,01/22] aarch64: Add HWCAP_GCS

Message ID 20241018095743.2955017-1-yury.khrustalev@arm.com
State New
Headers show
Series aarch64: Add support for Guarded Control Stack extension | expand

Commit Message

Yury Khrustalev Oct. 18, 2024, 9:57 a.m. UTC
From: Szabolcs Nagy <szabolcs.nagy@arm.com>

Use upper 32 bits of HWCAP.
---
 sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Florian Weimer Oct. 18, 2024, 10:03 a.m. UTC | #1
* Yury Khrustalev:

> From: Szabolcs Nagy <szabolcs.nagy@arm.com>
>
> Use upper 32 bits of HWCAP.
> ---
>  sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
> index 8dceaa1a52..9c4f4f46d1 100644
> --- a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
> +++ b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
> @@ -54,6 +54,7 @@
>  #define HWCAP_SB		(1 << 29)
>  #define HWCAP_PACA		(1 << 30)
>  #define HWCAP_PACG		(1UL << 31)
> +#define HWCAP_GCS		(1UL << 32)

Is the out-of-tree ILP32 port still a thing?  I haven't checked if it
alters the prototype for getauxval, but this doesn't look quite
compatible with it.
diff mbox series

Patch

diff --git a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
index 8dceaa1a52..9c4f4f46d1 100644
--- a/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
+++ b/sysdeps/unix/sysv/linux/aarch64/bits/hwcap.h
@@ -54,6 +54,7 @@ 
 #define HWCAP_SB		(1 << 29)
 #define HWCAP_PACA		(1 << 30)
 #define HWCAP_PACG		(1UL << 31)
+#define HWCAP_GCS		(1UL << 32)
 
 #define HWCAP2_DCPODP		(1 << 0)
 #define HWCAP2_SVE2		(1 << 1)