summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-03-19 10:12:06 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-03-19 15:15:45 +0100
commit6457fb29ff20698c98f1dede5517d286ac081f8f (patch)
tree0d12c4c90116e5662128432c5ff48578310e028a /c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
parentFixed 2 compiler warnings (diff)
downloadrtems-6457fb29ff20698c98f1dede5517d286ac081f8f.tar.bz2
bsp/psim: Use shared linkcmds.base
Several GCC tests faild due to the outdated previous linker command file.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/psim/startup/bspstart.c')
-rw-r--r--c/src/lib/libbsp/powerpc/psim/startup/bspstart.c14
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()
);
/*