aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2017-09-14 14:26:55 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2017-09-14 14:26:55 +0000
commitc2f37b92452cec6ab7fc5b9d2b682ac9af4bd436 (patch)
tree20f68657797a686cd1c45afe622fc6ec17af921d /sys/sparc64
parentcbc785c2938ea79fd630f46586873985fe476327 (diff)
downloadsrc-c2f37b92452cec6ab7fc5b9d2b682ac9af4bd436.tar.gz
src-c2f37b92452cec6ab7fc5b9d2b682ac9af4bd436.zip
Add AT_HWCAP and AT_EHDRFLAGS on all platforms.
A new 'u_long *sv_hwcap' field is added to 'struct sysentvec'. A process ABI can set this field to point to a value holding a mask of architecture-specific CPU feature flags. If an ABI does not wish to supply AT_HWCAP to processes the field can be left as NULL. The support code for AT_EHDRFLAGS was already present on all systems, just the #define was not present. This is a step towards unifying the AT_* constants across platforms. Reviewed by: kib MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D12290
Notes
Notes: svn path=/head/; revision=323579
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/include/elf.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sparc64/include/elf.h b/sys/sparc64/include/elf.h
index 448ca66793ec..22ee3cb46e75 100644
--- a/sys/sparc64/include/elf.h
+++ b/sys/sparc64/include/elf.h
@@ -92,8 +92,10 @@ __ElfType(Auxinfo);
#define AT_PAGESIZESLEN 21 /* Number of pagesizes. */
#define AT_TIMEKEEP 22 /* Pointer to timehands. */
#define AT_STACKPROT 23 /* Initial stack protection. */
+#define AT_EHDRFLAGS 24 /* e_flags field from elf hdr */
+#define AT_HWCAP 25 /* CPU feature flags. */
-#define AT_COUNT 24 /* Count of defined aux entry types. */
+#define AT_COUNT 26 /* Count of defined aux entry types. */
/* Define "machine" characteristics */
#if __ELF_WORD_SIZE == 32