[U-Boot] [PATCH 10/29] blackfin: Avoiding using P3 in early init

Simon Glass sjg at chromium.org
Thu Dec 15 04:27:41 CET 2016


The P3 register is used to hold the global_data pointer. At present this
is not set up until cpu_init_f() is called, but we want to instead set it
up using the standard board_init_f_init_reserve() function. To avoid it
being overwritten use P2 instead of P3 in early init.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 arch/blackfin/cpu/start.S | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/blackfin/cpu/start.S b/arch/blackfin/cpu/start.S
index 5e19ad2..0bba86b 100644
--- a/arch/blackfin/cpu/start.S
+++ b/arch/blackfin/cpu/start.S
@@ -219,9 +219,9 @@ ENTRY(_start)
 	r7 = EVT_IVG15 (z);
 	sti r7;
 	raise 15;
-	p3.l = .LWAIT_HERE;
-	p3.h = .LWAIT_HERE;
-	reti = p3;
+	p2.l = .LWAIT_HERE;
+	p2.h = .LWAIT_HERE;
+	reti = p2;
 	rti;
 
 	/* Enable nested interrupts before continuing with cpu init */
-- 
2.8.0.rc3.226.g39d4020



More information about the U-Boot mailing list