public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ARM: provide a valid exception stack address for startup code
@ 2017-06-08  8:16 Lothar Waßmann
  2017-06-12 22:44 ` [U-Boot] " Tom Rini
  2017-06-12 23:50 ` [U-Boot] [PATCH] " Simon Glass
  0 siblings, 2 replies; 5+ messages in thread
From: Lothar Waßmann @ 2017-06-08  8:16 UTC (permalink / raw)
  To: u-boot

Create exception stack in IRAM if available to facilitate debugging of
pre-relocation code by catching exceptions rather than stopping dead.

Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
---
 arch/arm/lib/vectors.S | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm/lib/vectors.S b/arch/arm/lib/vectors.S
index f53b1e9..1019091 100644
--- a/arch/arm/lib/vectors.S
+++ b/arch/arm/lib/vectors.S
@@ -117,7 +117,6 @@ data_abort:
 not_used:
 irq:
 fiq:
-
 1:
 	bl	1b			/* hang and never return */
 
@@ -126,7 +125,11 @@ fiq:
 /* IRQ stack memory (calculated at run-time) + 8 bytes */
 .globl IRQ_STACK_START_IN
 IRQ_STACK_START_IN:
+#ifdef IRAM_BASE_ADDR
+	.word   IRAM_BASE_ADDR + 0x20
+#else
 	.word	0x0badc0de
+#endif
 
 @
 @ IRQ stack frame.
-- 
2.1.4

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

end of thread, other threads:[~2017-06-17  3:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-08  8:16 [U-Boot] [PATCH] ARM: provide a valid exception stack address for startup code Lothar Waßmann
2017-06-12 22:44 ` [U-Boot] " Tom Rini
2017-06-12 23:50 ` [U-Boot] [PATCH] " Simon Glass
2017-06-13  7:06   ` Lothar Waßmann
2017-06-17  3:41     ` Simon Glass

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