aboutsummaryrefslogtreecommitdiff
path: root/sys/sys
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/sys
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/sys')
-rw-r--r--sys/sys/sysent.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/sysent.h b/sys/sys/sysent.h
index a4049876454b..c03f9b4c9f7d 100644
--- a/sys/sys/sysent.h
+++ b/sys/sys/sysent.h
@@ -129,6 +129,7 @@ struct sysentvec {
void (*sv_schedtail)(struct thread *);
void (*sv_thread_detach)(struct thread *);
int (*sv_trap)(struct thread *);
+ u_long *sv_hwcap; /* Value passed in AT_HWCAP. */
};
#define SV_ILP32 0x000100 /* 32-bit executable. */