]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
ARM: provide a valid exception stack address for startup code
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 8 Jun 2017 08:16:36 +0000 (10:16 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 12 Jun 2017 12:38:40 +0000 (08:38 -0400)
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

index f53b1e9a2bc118c623e0aa7424bd1a4074903bab..101909103e4a5d4ae69f41ff4c8e623779b13e91 100644 (file)
@@ -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.