]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Factor out checking of a feature against the override into a macro
authorMarc Zyngier <maz@kernel.org>
Thu, 30 Jun 2022 16:04:55 +0000 (17:04 +0100)
committerWill Deacon <will@kernel.org>
Fri, 1 Jul 2022 14:22:51 +0000 (15:22 +0100)
commit030cca8fa4f47365df9ad031286f250b5c78e8b3
tree3904c8d6a2770c0c6adb10916a5701c2347b6a92
parentd263d152b561e75850aa14a72dfcee338d3c4d2e
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: Mark Brown <broonie@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220630160500.1536744-5-maz@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/hyp-stub.S