diff options
Diffstat (limited to 'c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c b/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c index f60d1be5ca..c3e87b4b6d 100644 --- a/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c @@ -27,6 +27,7 @@ #include <bsp/vectors.h> #include <bsp/bootcard.h> #include <bsp/irq-generic.h> +#include <bsp/linker-symbols.h> #include <bsp/u-boot.h> /* Configuration parameters for console driver, ... */ @@ -80,9 +81,6 @@ void bsp_start( void) ppc_cpu_id_t myCpu; ppc_cpu_revision_t myCpuRevision; - uintptr_t interrupt_stack_start = (uintptr_t) bsp_interrupt_stack_start; - uintptr_t interrupt_stack_size = (uintptr_t) bsp_interrupt_stack_size; - /* * Get CPU identification dynamically. Note that the get_ppc_cpu_type() function * store the result in global variables so that it can be used latter... @@ -136,8 +134,8 @@ void bsp_start( void) #endif ppc_exc_initialize( PPC_INTERRUPT_DISABLE_MASK_DEFAULT, - interrupt_stack_start, - interrupt_stack_size + (uintptr_t) bsp_section_work_begin, + rtems_configuration_get_interrupt_stack_size() ); /* Install default handler for the decrementer exception */ |