[U-Boot] [RFC PATCH 1/5] armv7: move boot hook before '_start'
Kever Yang
kever.yang at rock-chips.com
Wed May 31 10:50:36 UTC 2017
The boot0 hook suppose to add some data before the SPL data,
let's move it at very begining and before '_start'.
Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
---
arch/arm/lib/vectors.S | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/arch/arm/lib/vectors.S b/arch/arm/lib/vectors.S
index f53b1e9..b4cd825 100644
--- a/arch/arm/lib/vectors.S
+++ b/arch/arm/lib/vectors.S
@@ -35,6 +35,16 @@
.section ".vectors", "ax"
+#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>
+
+#endif
+
/*
*************************************************************************
*
@@ -60,15 +70,6 @@ _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>
-#endif
-
/*
*************************************************************************
*
--
1.9.1
More information about the U-Boot
mailing list