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)
Sep 28 2024, 1:15 AM
Unknown Object (File)
Sep 26 2024, 8:32 PM
Unknown Object (File)
Sep 26 2024, 12:22 AM
Unknown Object (File)
Sep 23 2024, 12:25 AM
Unknown Object (File)
Sep 19 2024, 2:35 PM
Unknown Object (File)
Sep 5 2024, 6:34 PM
Unknown Object (File)
Aug 29 2024, 6:17 PM
Unknown Object (File)
Aug 22 2024, 8:11 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39559
Build 36448: arc lint + arc unit

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.