arm64: Expose a __check_override primitive for oddball features
authorMarc Zyngier <maz@kernel.org>
Thu, 30 Jun 2022 16:04:57 +0000 (17:04 +0100)
committerWill Deacon <will@kernel.org>
Fri, 1 Jul 2022 14:22:52 +0000 (15:22 +0100)
commit6ab7661e1d3930edc8462099f047ca2cfdbd343a
tree1caf95e97df3db43a0ede5eecb70ff90abcdd5b1
parent6b7ec18c09763f72dcd3d87e194860f9e9db8968
arm64: Expose a __check_override primitive for oddball features

In order to feal with early override of features that are not
classically encoded in a standard ID register with a 4 bit wide
field, add a primitive that takes a sysreg value as an input
(instead of the usual sysreg name) as well as a bit field
width (usually 4).

No functional change.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220630160500.1536744-7-maz@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/hyp-stub.S