]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
ARM: move interrupt_init to before relocation
authorRob Herring <rob.herring@calxeda.com>
Thu, 13 Jun 2013 03:24:45 +0000 (22:24 -0500)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Thu, 25 Jul 2013 06:14:28 +0000 (08:14 +0200)
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: Rob Herring <rob.herring@calxeda.com>
arch/arm/lib/board.c

index 09ab4ad73645a01fffb8f1e696f6bc6db8ff74ae..c90843ef70b7347e3d22ee1e328bd81e30c88238 100644 (file)
@@ -447,6 +447,7 @@ void board_init_f(ulong bootflag)
        addr_sp += 128; /* leave 32 words for abort-stack   */
        gd->irq_sp = addr_sp;
 #endif
+       interrupt_init();
 
        debug("New Stack Pointer is: %08lx\n", addr_sp);
 
@@ -648,8 +649,6 @@ void board_init_r(gd_t *id, ulong dest_addr)
        misc_init_r();
 #endif
 
-        /* set up exceptions */
-       interrupt_init();
        /* enable exceptions */
        enable_interrupts();