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
F161332507: D26069.id75856.diff
Thu, Jul 2, 9:54 PM
F161274920: D26069.diff
Thu, Jul 2, 8:47 AM
Unknown Object (File)
Wed, Jun 24, 7:23 AM
Unknown Object (File)
Sat, Jun 20, 4:06 AM
Unknown Object (File)
Sat, Jun 20, 12:57 AM
Unknown Object (File)
Fri, Jun 19, 6:01 PM
Unknown Object (File)
Fri, Jun 19, 3:59 PM
Unknown Object (File)
Tue, Jun 16, 3:28 PM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable