diff options
Diffstat (limited to 'c/src/lib/libbsp/powerpc/psim/startup/bspstart.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/psim/startup/bspstart.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c b/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c index 2689f5a64f..9ae6f7bed7 100644 --- a/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c @@ -18,6 +18,7 @@ #include <bsp/irq.h> #include <psim.h> #include <bsp/bootcard.h> +#include <bsp/linker-symbols.h> #include <rtems/bspIo.h> #include <rtems/powerpc/powerpc.h> @@ -77,9 +78,6 @@ void _BSP_Fatal_error(unsigned int v) */ void bsp_start( void ) { - uintptr_t intrStackStart; - uintptr_t intrStackSize; - /* * Note we can not get CPU identification dynamically. * PVR has to be set to PPC_PSIM (0xfffe) from the device @@ -101,18 +99,12 @@ void bsp_start( void ) bsp_exceptions_in_RAM = FALSE; /* - * Initialize the interrupt related settings. - */ - intrStackStart = (uintptr_t) __rtems_end; - intrStackSize = rtems_configuration_get_interrupt_stack_size(); - - /* * Initialize default raw exception handlers. */ ppc_exc_initialize( PPC_INTERRUPT_DISABLE_MASK_DEFAULT, - intrStackStart, - intrStackSize + (uintptr_t) bsp_section_work_begin, + rtems_configuration_get_interrupt_stack_size() ); /* |