[PATCH v4 01/22] aarch64: Add HWCAP_GCS
Carlos O'Donell
codonell@redhat.com
Mon Dec 2 21:21:07 GMT 2024
On 11/29/24 11:37 AM, Yury Khrustalev wrote:
> From: Szabolcs Nagy <szabolcs.nagy@arm.com>
>
> Use upper 32 bits of HWCAP.
This can't go in until a Linux kernel is released with this constant
since this is bits/hwcap.h and is included in sys/auxv.h and would
make the constant visible to the users.
You use HWCAP_GCS internally in a couple of places, so you could
put this into another header temporarily to support building
glibc without exposing the constant in the release.
> ---
> 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 2fa158fcc0..47836eb414 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)
Cheers,
Carlos.
More information about the Libc-alpha
mailing list