Re: [PATCH v4 15/34] arm64: asm: Provide set_sctlr_el2 macro

From: Will Deacon
Date: Thu Mar 11 2021 - 11:23:09 EST


On Wed, Mar 10, 2021 at 05:57:32PM +0000, Quentin Perret wrote:
> We will soon need to turn the EL2 stage 1 MMU on and off in nVHE
> protected mode, so refactor the set_sctlr_el1 macro to make it usable
> for that purpose.
>
> Signed-off-by: Quentin Perret <qperret@xxxxxxxxxx>
> ---
> arch/arm64/include/asm/assembler.h | 14 +++++++++++---
> 1 file changed, 11 insertions(+), 3 deletions(-)

Acked-by: Will Deacon <will@xxxxxxxxxx>

Will