[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/14] bsd-user/target_os_elf: If ELF_HWCAP2 is defined, publish
From: |
Warner Losh |
Subject: |
[PATCH 08/14] bsd-user/target_os_elf: If ELF_HWCAP2 is defined, publish it |
Date: |
Wed, 22 Sep 2021 00:14:32 -0600 |
Some architecutres publish AT_HWCAP2 as well as AT_HWCAP. Those
architectures will define this in their target_arch_elf.h files. If it
is defined, then publish it.
Signed-off-by: Warner Losh <imp@bsdimp.com>
---
bsd-user/freebsd/target_os_elf.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/bsd-user/freebsd/target_os_elf.h b/bsd-user/freebsd/target_os_elf.h
index adcffd1ddb..e5ac8e8e50 100644
--- a/bsd-user/freebsd/target_os_elf.h
+++ b/bsd-user/freebsd/target_os_elf.h
@@ -112,6 +112,10 @@ static abi_ulong target_create_elf_tables(abi_ulong p, int
argc, int envc,
NEW_AUX_ENT(AT_ENTRY, load_bias + exec->e_entry);
features = ELF_HWCAP;
NEW_AUX_ENT(FREEBSD_AT_HWCAP, features);
+#ifdef ELF_HWCAP2
+ features = ELF_HWCAP2;
+ NEW_AUX_ENT(FREEBSD_AT_HWCAP2, features);
+#endif
NEW_AUX_ENT(AT_UID, (abi_ulong)getuid());
NEW_AUX_ENT(AT_EUID, (abi_ulong)geteuid());
NEW_AUX_ENT(AT_GID, (abi_ulong)getgid());
--
2.32.0
- Re: [PATCH 10/14] bsd-user: Add stop_all_tasks, (continued)
- [PATCH 11/14] bsd-user/sysarch: Move to using do_freebsd_arch_sysarch interface, Warner Losh, 2021/09/22
- [PATCH 12/14] bsd-user/sysarch: Provide a per-arch framework for sysarch syscall, Warner Losh, 2021/09/22
- [PATCH 03/14] bsd-user: TARGET_RESET define is unused, remove it, Warner Losh, 2021/09/22
- [PATCH 08/14] bsd-user/target_os_elf: If ELF_HWCAP2 is defined, publish it,
Warner Losh <=
- [PATCH 06/14] bsd-user: move TARGET_MC_GET_CLEAR_RET to target_os_signal.h, Warner Losh, 2021/09/22
- [PATCH 14/14] bsd-user/signal: Create a dummy signal queueing function, Warner Losh, 2021/09/22