This ensures that primary and secondary cores will have the same values for SCTLR_EL1. Signed-off-by: Joey Gouly --- arm/cstart64.S | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arm/cstart64.S b/arm/cstart64.S index 014c9c7b..dcdd1516 100644 --- a/arm/cstart64.S +++ b/arm/cstart64.S @@ -185,6 +185,11 @@ get_mmu_off: .globl secondary_entry secondary_entry: + /* set SCTLR_EL1 to a known value */ + ldr x0, =INIT_SCTLR_EL1_MMU_OFF + msr sctlr_el1, x0 + isb + /* enable FP/ASIMD and SVE */ mov x0, #(3 << 20) orr x0, x0, #(3 << 16) -- 2.25.1