[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 09/15] bsd-user/target_os_elf: If ELF_HWCAP2 is defined, p
From: |
Kyle Evans |
Subject: |
Re: [PATCH v2 09/15] bsd-user/target_os_elf: If ELF_HWCAP2 is defined, publish it |
Date: |
Sun, 17 Oct 2021 22:35:30 -0500 |
On Fri, Oct 8, 2021 at 6:15 PM Warner Losh <imp@bsdimp.com> wrote:
>
> Some architectures publish AT_HWCAP2 as well as AT_HWCAP. Those
> architectures will define ELF_HWCAP2 in their target_arch_elf.h files
> for the value for this process. If it is defined, then publish it.
>
> Signed-off-by: Warner Losh <imp@bsdimp.com>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> 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
>
Reviewed-by: Kyle Evans <kevans@FreeBSD.org>
- Re: [PATCH v2 01/15] meson: *-user: only descend into *-user when configured, (continued)
- [PATCH v2 03/15] bsd-user/strace.list: Remove support for FreeBSD versions older than 12.0, Warner Losh, 2021/10/08
- [PATCH v2 02/15] bsd-user/target_os-user.h: Remove support for FreeBSD older than 12.0, Warner Losh, 2021/10/08
- [PATCH v2 05/15] bsd-user: export get_errno and is_error from syscall.c, Warner Losh, 2021/10/08
- [PATCH v2 04/15] bsd-user: TARGET_RESET define is unused, remove it, Warner Losh, 2021/10/08
- [PATCH v2 09/15] bsd-user/target_os_elf: If ELF_HWCAP2 is defined, publish it, Warner Losh, 2021/10/08
- Re: [PATCH v2 09/15] bsd-user/target_os_elf: If ELF_HWCAP2 is defined, publish it,
Kyle Evans <=
- [PATCH v2 06/15] bsd-user/errno_defs.h: Add internal error numbers, Warner Losh, 2021/10/08
- [PATCH v2 07/15] bsd-user: move TARGET_MC_GET_CLEAR_RET to target_os_signal.h, Warner Losh, 2021/10/08
- [PATCH v2 10/15] bsd-user: Remove used from TaskState, Warner Losh, 2021/10/08
- [PATCH v2 08/15] bsd-user/target_os_elf.h: Remove fallback ELF_HWCAP and reorder, Warner Losh, 2021/10/08
- [PATCH v2 12/15] bsd-user/sysarch: Move to using do_freebsd_arch_sysarch interface, Warner Losh, 2021/10/08