X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=lib_arm%2Finterrupts.c;h=1f2b815611cfd4cc9b74c7c61722c492deff0868;hb=3d97b5e78fac230ad4de9ec5f26379b94ae5ffbf;hp=4dafbfaab5bab125c401bce24331b9bc45864fc2;hpb=5db6138565ad4da190f94e0bc1d89407d58a2ab2;p=u-boot diff --git a/lib_arm/interrupts.c b/lib_arm/interrupts.c index 4dafbfaab5..1f2b815611 100644 --- a/lib_arm/interrupts.c +++ b/lib_arm/interrupts.c @@ -11,7 +11,7 @@ * Alex Zuepke * * (C) Copyright 2002-2004 - * Gary Jennejohn, DENX Software Engineering, + * Gary Jennejohn, DENX Software Engineering, * * (C) Copyright 2004 * Philippe Robin, ARM Ltd. @@ -39,6 +39,19 @@ #include #ifdef CONFIG_USE_IRQ +DECLARE_GLOBAL_DATA_PTR; + +int interrupt_init (void) +{ + /* + * setup up stacks if necessary + */ + IRQ_STACK_START = _armboot_start - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_GBL_DATA_SIZE - 4; + FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ; + + return arch_interrupt_init(); +} + /* enable IRQ interrupts */ void enable_interrupts (void) {