Page MenuHomeFreeBSD

arm64: parse HWCAP values using user_cpu_desc
ClosedPublic

Authored by mhorne on Aug 14 2020, 9:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 19, 3:16 PM
Unknown Object (File)
Mar 14 2024, 7:38 AM
Unknown Object (File)
Mar 14 2024, 7:38 AM
Unknown Object (File)
Mar 14 2024, 7:38 AM
Unknown Object (File)
Mar 14 2024, 7:26 AM
Unknown Object (File)
Dec 20 2023, 4:26 AM
Unknown Object (File)
Sep 26 2023, 9:54 AM
Unknown Object (File)
Sep 8 2023, 12:46 AM
Subscribers

Details

Summary

The hard work of parsing fields per-CPU, handling heterogeneous
features, and excluding features from userspace is already done by
update_special_regs. We can build our set of HWCAPs from the result.

This also exposed a small bug in update_special_regs, in which the
generated bitmask was not wide enough, and as a result some bits
weren't being exposed in user_cpu_desc.

While here, adjust some formatting.

Test Plan

Exposed set of hwcaps is identical before and after the change on EC2 Graviton2.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33000
Build 30389: arc lint + arc unit