summaryrefslogtreecommitdiff
path: root/arch/arm/lib/vectors.S
diff options
context:
space:
mode:
authorLothar Waßmann <LW@KARO-electronics.de>2017-06-08 10:16:36 +0200
committerTom Rini <trini@konsulko.com>2017-06-12 08:38:40 -0400
commit69c5d76f2fd8bf645cde9f0a8225daba25d65e01 (patch)
treecc2361543b8500f905458cb1e536eb62935cf9ae /arch/arm/lib/vectors.S
parentc88823612d6ff69a64a86456eb56a9576911466b (diff)
ARM: provide a valid exception stack address for startup code
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>
Diffstat (limited to 'arch/arm/lib/vectors.S')
-rw-r--r--arch/arm/lib/vectors.S5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/lib/vectors.S b/arch/arm/lib/vectors.S
index f53b1e9a2b..101909103e 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.