arm64: Use INIT_SCTLR_EL1_MMU_OFF to disable the MMU on CPU restart
[sfrench/cifs-2.6.git] / arch / arm64 / kernel / cpu-reset.S
index 37721eb6f9a145b592282b20154179d886d330d6..d47ff63a5b66491bcde9200abfadac370395fa05 100644 (file)
  * flat identity mapping.
  */
 SYM_CODE_START(__cpu_soft_restart)
-       /* Clear sctlr_el1 flags. */
-       mrs     x12, sctlr_el1
-       mov_q   x13, SCTLR_ELx_FLAGS
-       bic     x12, x12, x13
+       mov_q   x12, INIT_SCTLR_EL1_MMU_OFF
        pre_disable_mmu_workaround
        /*
         * either disable EL1&0 translation regime or disable EL2&0 translation