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

2021-03-11 Thread Will Deacon
On Wed, Mar 10, 2021 at 05:57:32PM +, 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 > --- >

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

2021-03-10 Thread Quentin Perret
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 --- arch/arm64/include/asm/assembler.h | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-)