Skip to content
Commit fa8aa59a authored by Marc Zyngier's avatar Marc Zyngier Committed by Will Deacon
Browse files

arm64: Factor out checking of a feature against the override into a macro



Checking for a feature being supported from assembly code is
a bit tedious if we need to factor in the idreg override.

Since we already have such code written for forcing nVHE, move
the whole thing into a macro. This heavily relies on the override
structure being called foo_override for foo_el1.

No functional change.

Reviewed-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220630160500.1536744-5-maz@kernel.org


Signed-off-by: default avatarWill Deacon <will@kernel.org>
parent ae4b7e38
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment