mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-20 22:21:41 +00:00
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>
This commit is contained in:
parent
c88823612d
commit
69c5d76f2f
1 changed files with 4 additions and 1 deletions
|
@ -117,7 +117,6 @@ data_abort:
|
||||||
not_used:
|
not_used:
|
||||||
irq:
|
irq:
|
||||||
fiq:
|
fiq:
|
||||||
|
|
||||||
1:
|
1:
|
||||||
bl 1b /* hang and never return */
|
bl 1b /* hang and never return */
|
||||||
|
|
||||||
|
@ -126,7 +125,11 @@ fiq:
|
||||||
/* IRQ stack memory (calculated at run-time) + 8 bytes */
|
/* IRQ stack memory (calculated at run-time) + 8 bytes */
|
||||||
.globl IRQ_STACK_START_IN
|
.globl IRQ_STACK_START_IN
|
||||||
IRQ_STACK_START_IN:
|
IRQ_STACK_START_IN:
|
||||||
|
#ifdef IRAM_BASE_ADDR
|
||||||
|
.word IRAM_BASE_ADDR + 0x20
|
||||||
|
#else
|
||||||
.word 0x0badc0de
|
.word 0x0badc0de
|
||||||
|
#endif
|
||||||
|
|
||||||
@
|
@
|
||||||
@ IRQ stack frame.
|
@ IRQ stack frame.
|
||||||
|
|
Loading…
Add table
Reference in a new issue