aboutsummaryrefslogtreecommitdiff
path: root/elf/elf.h
diff options
context:
space:
mode:
authorManjunath Matti <mmatti@linux.ibm.com>2024-03-19 15:29:48 -0500
committerPeter Bergner <bergner@linux.ibm.com>2024-03-20 18:09:32 -0500
commitee7f4c54e19738c2c27d3846e1e9b3595c89221f (patch)
tree01fa49f5b8d720ea62de03f1ab9331fb7949cbe7 /elf/elf.h
parent71fcdba577884627c3ee4e43beb915da752efb1f (diff)
downloadglibc-ee7f4c54e19738c2c27d3846e1e9b3595c89221f.zip
glibc-ee7f4c54e19738c2c27d3846e1e9b3595c89221f.tar.gz
glibc-ee7f4c54e19738c2c27d3846e1e9b3595c89221f.tar.bz2
powerpc: Add HWCAP3/HWCAP4 data to TCB for Power Architecture.
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 <bergner@linux.ibm.com> Reviewed-by: Peter Bergner <bergner@linux.ibm.com> (cherry picked from commit 3ab9b88e2ac91062b6d493fe32bd101a55006c6a)
Diffstat (limited to 'elf/elf.h')
-rw-r--r--elf/elf.h4
1 files changed, 4 insertions, 0 deletions
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