]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm64: parse HWCAP values using user_cpu_desc
authorMitchell Horne <mhorne@FreeBSD.org>
Sat, 15 Aug 2020 15:06:39 +0000 (15:06 +0000)
committerMitchell Horne <mhorne@FreeBSD.org>
Sat, 15 Aug 2020 15:06:39 +0000 (15:06 +0000)
commit3d89a9759f87f535cf64f158ebc980245036444f
tree8623b922714aef5fa147589ddcd753d35855c581
parent6194973636c80029320f241db376ff4543e0f4c0
arm64: parse HWCAP values using user_cpu_desc

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 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. Fix this.

While here, adjust some formatting.

Reviewed by: andrew
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D26069
sys/arm64/arm64/identcpu.c