Skip to content
Snippets Groups Projects
Commit 0f5141e9 authored by Rob Herring's avatar Rob Herring Committed by Albert ARIBAUD
Browse files

ARM: move interrupt_init to before relocation


interrupt_init also sets up the abort stack, but is not setup before
relocation. So any aborts during relocation will hang and not print out
any useful information. Fix this by moving the interrupt_init to after
the stack setup in board_init_f.

Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
parent 62c175fb
No related branches found
No related tags found
No related merge requests found
...@@ -447,6 +447,7 @@ void board_init_f(ulong bootflag) ...@@ -447,6 +447,7 @@ void board_init_f(ulong bootflag)
addr_sp += 128; /* leave 32 words for abort-stack */ addr_sp += 128; /* leave 32 words for abort-stack */
gd->irq_sp = addr_sp; gd->irq_sp = addr_sp;
#endif #endif
interrupt_init();
debug("New Stack Pointer is: %08lx\n", addr_sp); debug("New Stack Pointer is: %08lx\n", addr_sp);
...@@ -648,8 +649,6 @@ void board_init_r(gd_t *id, ulong dest_addr) ...@@ -648,8 +649,6 @@ void board_init_r(gd_t *id, ulong dest_addr)
misc_init_r(); misc_init_r();
#endif #endif
/* set up exceptions */
interrupt_init();
/* enable exceptions */ /* enable exceptions */
enable_interrupts(); enable_interrupts();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment