On 3 Sep 2021, at 12:02, Michal Meloun <[email protected]> wrote: > > On 03.09.2021 11:08, Dimitry Andric wrote: ... >> but in FreeBSD we don't have getauxval(), and I'm unsure if AT_HWCAP >> works on aarch64. >> As this is all outside my domain of knowledge I'd appreciate if somebody >> knows how to retrieve this information on our AArch64 implementation. :) >> -Dimitry > > We already have elf_aux_info(3) as counterpart to getauxval() and AT_HWCAP > and AT_HWCAP2 are supported on arm64 as well, so the fix is trivial. > I'll try do it over the weekend, but I'm having some weird HW issues on my > build box so, I'm not sure if it will be possible...
Aha, thanks! I've now looked at our sys/auxv.h which has this functionality. I think I'll work on a patch that can be submitted upstream. -Dimitry
signature.asc
Description: Message signed with OpenPGP
