From ee7f4c54e19738c2c27d3846e1e9b3595c89221f Mon Sep 17 00:00:00 2001 From: Manjunath Matti Date: Tue, 19 Mar 2024 15:29:48 -0500 Subject: =?UTF-8?q?=EF=BB=BFpowerpc:=20Add=20HWCAP3/HWCAP4=20data=20to=20T?= =?UTF-8?q?CB=20for=20Power=20Architecture.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch adds a new feature for powerpc. In order to get faster access to the HWCAP3/HWCAP4 masks, similar to HWCAP/HWCAP2 (i.e. for implementing __builtin_cpu_supports() in GCC) without the overhead of reading them from the auxiliary vector, we now reserve space for them in the TCB. Suggested-by: Peter Bergner Reviewed-by: Peter Bergner (cherry picked from commit 3ab9b88e2ac91062b6d493fe32bd101a55006c6a) --- elf/elf.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'elf/elf.h') diff --git a/elf/elf.h b/elf/elf.h index 4557316..1c394c6 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -1234,6 +1234,10 @@ typedef struct #define AT_RSEQ_FEATURE_SIZE 27 /* rseq supported feature size. */ #define AT_RSEQ_ALIGN 28 /* rseq allocation alignment. */ +/* More machine-dependent hints about processor capabilities. */ +#define AT_HWCAP3 29 /* extension of AT_HWCAP. */ +#define AT_HWCAP4 30 /* extension of AT_HWCAP. */ + #define AT_EXECFN 31 /* Filename of executable. */ /* Pointer to the global system page used for system calls and other -- cgit v1.1