sunxi: binman: Add U-Boot binary size check
[oweals/u-boot.git] / arch / arm / cpu / armv8 / start.S
index 62d97f7e882225a027390e8d2b6f13c4a6a606de..5c500be51d1f5fb616e04539e5fd2cb9e7287e3b 100644 (file)
@@ -86,14 +86,17 @@ save_boot_params_ret:
 0:
 
        /*
-        * Enalbe SMPEN bit for coherency.
+        * Enable SMPEN bit for coherency.
         * This register is not architectural but at the moment
         * this bit should be set for A53/A57/A72.
         */
 #ifdef CONFIG_ARMV8_SET_SMPEN
-       mrs     x0, S3_1_c15_c2_1               /* cpuactlr_el1 */
+       switch_el x1, 3f, 1f, 1f
+3:
+       mrs     x0, S3_1_c15_c2_1               /* cpuectlr_el1 */
        orr     x0, x0, #0x40
        msr     S3_1_c15_c2_1, x0
+1:
 #endif
 
        /* Apply ARM core specific erratas */