[kvm-unit-tests PATCH v6 02/14] arm64: set SCTLR_EL1 to a known value for secondary cores
Joey Gouly
joey.gouly at arm.com
Fri Jan 23 08:50:41 PST 2026
This ensures that primary and secondary cores will have the same values for
SCTLR_EL1.
Signed-off-by: Joey Gouly <joey.gouly at arm.com>
Fixes: 10b65ce77ae7 ("arm64: Configure SCTLR_EL1 at boot")
Reviewed-by: Andrew Jones <andrew.jones at linux.dev>
---
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
More information about the linux-arm-kernel
mailing list