public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] ARM: relocate: fix hang when CONFIG_ARMV7_SECURE_BASE
@ 2015-10-06 22:13 Frank Li
  2015-10-06 22:13 ` [U-Boot] [PATCH 2/3] mx7: psci: add basic psci support Frank Li
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Frank Li @ 2015-10-06 22:13 UTC (permalink / raw)
  To: u-boot

When added above configuration, iram fix up plus relocate offset may locate
in invalidate space. Write back fix up value will cause data abort.

Add address check, skip psci code.

Signed-off-by: Frank Li <Frank.Li@freescale.com>
---
 arch/arm/lib/relocate.S | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/lib/relocate.S b/arch/arm/lib/relocate.S
index 475d503..6795a1b 100644
--- a/arch/arm/lib/relocate.S
+++ b/arch/arm/lib/relocate.S
@@ -99,6 +99,10 @@ fixloop:
 	cmp	r1, #23			/* relative fixup? */
 	bne	fixnext
 
+	ldr	r1, =__image_copy_start
+	cmp	r0, r1
+	blo	fixnext
+
 	/* relative fix: increase location by offset */
 	add	r0, r0, r4
 	ldr	r1, [r0]
-- 
2.5.2

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-10-19 14:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-06 22:13 [U-Boot] [PATCH 1/3] ARM: relocate: fix hang when CONFIG_ARMV7_SECURE_BASE Frank Li
2015-10-06 22:13 ` [U-Boot] [PATCH 2/3] mx7: psci: add basic psci support Frank Li
2015-10-06 22:13 ` [U-Boot] [PATCH 3/3] imx: config: default enable nosec mode Frank Li
2015-10-19  5:40 ` [U-Boot] [PATCH 1/3] ARM: relocate: fix hang when CONFIG_ARMV7_SECURE_BASE Peng Fan
2015-10-19  6:48   ` Albert ARIBAUD
2015-10-19  7:19     ` Peng Fan
2015-10-19  8:23       ` Albert ARIBAUD
2015-10-19  8:41         ` Peng Fan
2015-10-19 11:48           ` Albert ARIBAUD
2015-10-19 12:47             ` Peng Fan
2015-10-19 14:13               ` Li Frank

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox