]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/cpu/arm1176/start.S
armv8: layerscape: Make U-Boot EL2 safe
[u-boot] / arch / arm / cpu / arm1176 / start.S
index a602d4e693745e3f1a631010cf87b35babdfe862..7c00201dd0ab7689604797922141045ae3235838 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <asm-offsets.h>
 #include <config.h>
+#include <linux/linkage.h>
 
 #ifndef CONFIG_SYS_PHY_UBOOT_BASE
 #define CONFIG_SYS_PHY_UBOOT_BASE      CONFIG_SYS_UBOOT_BASE
        .globl reset
 
 reset:
+       /* Allow the board to save important registers */
+       b       save_boot_params
+.globl save_boot_params_ret
+save_boot_params_ret:
+
        /*
         * set the cpu to SVC32 mode
         */
@@ -110,3 +116,7 @@ mmu_disable_phys:
 c_runtime_cpu_setup:
 
        mov     pc, lr
+
+WEAK(save_boot_params)
+       b       save_boot_params_ret    /* back to my caller */
+ENDPROC(save_boot_params)