common/board_r: arm: Merge initr_enable_interrupts into interrupts_init
initr_enable_interrupts() is an ARM-specific wrapper over enable_interrupts(), which is run during the common init sequence. It can be eliminated by moving the enable_interrupts() call to the end of interrupt_init() function, in arch/arm/lib/interrupts*.c. Signed-off-by: Ovidiu Panait <ovpanait@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -34,6 +34,8 @@ int interrupt_init(void)
|
|||||||
*/
|
*/
|
||||||
IRQ_STACK_START_IN = gd->irq_sp + 8;
|
IRQ_STACK_START_IN = gd->irq_sp + 8;
|
||||||
|
|
||||||
|
enable_interrupts();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -13,6 +13,8 @@ DECLARE_GLOBAL_DATA_PTR;
|
|||||||
|
|
||||||
int interrupt_init(void)
|
int interrupt_init(void)
|
||||||
{
|
{
|
||||||
|
enable_interrupts();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -31,6 +31,8 @@ struct autosave_regs {
|
|||||||
|
|
||||||
int interrupt_init(void)
|
int interrupt_init(void)
|
||||||
{
|
{
|
||||||
|
enable_interrupts();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -518,15 +518,6 @@ static int initr_api(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* enable exceptions */
|
|
||||||
#ifdef CONFIG_ARM
|
|
||||||
static int initr_enable_interrupts(void)
|
|
||||||
{
|
|
||||||
enable_interrupts();
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_CMD_NET
|
#ifdef CONFIG_CMD_NET
|
||||||
static int initr_ethaddr(void)
|
static int initr_ethaddr(void)
|
||||||
{
|
{
|
||||||
@@ -813,9 +804,6 @@ static init_fnc_t init_sequence_r[] = {
|
|||||||
initr_kgdb,
|
initr_kgdb,
|
||||||
#endif
|
#endif
|
||||||
interrupt_init,
|
interrupt_init,
|
||||||
#ifdef CONFIG_ARM
|
|
||||||
initr_enable_interrupts,
|
|
||||||
#endif
|
|
||||||
#if defined(CONFIG_MICROBLAZE) || defined(CONFIG_M68K)
|
#if defined(CONFIG_MICROBLAZE) || defined(CONFIG_M68K)
|
||||||
timer_init, /* initialize timer */
|
timer_init, /* initialize timer */
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user