]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/lib/vectors.S
arm/arm64: implement a boot header capability
[u-boot] / arch / arm / lib / vectors.S
index 843b18f9203d89af06146a2c872e9e917842cbef..5cc132b7b844c5324dbdc0122a0bb0cb98aabcef 100644 (file)
@@ -33,7 +33,7 @@
  *************************************************************************
  */
 
-       .section ".vectors", "x"
+       .section ".vectors", "ax"
 
 /*
  *************************************************************************
  *************************************************************************
  */
 
+_start:
+
 #ifdef CONFIG_SYS_DV_NOR_BOOT_CFG
        .word   CONFIG_SYS_DV_NOR_BOOT_CFG
 #endif
 
-_start:
        b       reset
        ldr     pc, _undefined_instruction
        ldr     pc, _software_interrupt
@@ -59,6 +60,16 @@ _start:
        ldr     pc, _irq
        ldr     pc, _fiq
 
+#ifdef CONFIG_ENABLE_ARM_SOC_BOOT0_HOOK
+/*
+ * Various SoCs need something special and SoC-specific up front in
+ * order to boot, allow them to set that in their boot0.h file and then
+ * use it here.
+ */
+#include <asm/arch/boot0.h>
+ARM_SOC_BOOT0_HOOK
+#endif
+
 /*
  *************************************************************************
  *