Page MenuHomeFreeBSD

linux: export AT_HWCAP and AT_HWCAP2 on aarch64
ClosedPublic

Authored by trasz on May 29 2021, 6:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 17, 8:44 PM
Unknown Object (File)
Thu, Apr 10, 1:00 AM
Unknown Object (File)
Mar 8 2025, 9:59 AM
Unknown Object (File)
Mar 5 2025, 3:32 PM
Unknown Object (File)
Feb 26 2025, 1:01 AM
Unknown Object (File)
Feb 25 2025, 12:37 AM
Unknown Object (File)
Feb 23 2025, 10:21 AM
Unknown Object (File)
Feb 22 2025, 11:32 PM
Subscribers

Details

Summary

The flag values seem to be the same between Linux and FreeBSD.
Comparing to a Linux VM on the same hardware, we're missing
HWCAP_EVTSTRM, HWCAP_CPUID, HWCAP_DCPOP, HWCAP_USCAT, HWCAP_PACA,
and HWCAP_PACG.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

trasz requested review of this revision.May 29 2021, 6:25 AM

It's intentional that the same bits are used, but IMO we should have some way to help ensure that remains so, even if just a more explicit comment in sys/arm64/include/elf.h.

This revision is now accepted and ready to land.May 31 2021, 8:00 PM

It already suggests that's the case, though: "XXX: The following bits (from CPUID to FLAGM) were originally incorrect, but later changed to match the Linux definitions."

Indeed, hence "a more explicit comment" - it's only after this change that they must match.