summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c')
-rw-r--r--c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c b/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
index 6dfec6ad34..c6ea668c1b 100644
--- a/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c
@@ -46,6 +46,9 @@ SPR_RW(SPRG1)
uint8_t LightIdx = 0;
+extern int RAM_END;
+unsigned int BSP_mem_size = (unsigned int)&RAM_END;
+
void BSP_Increment_Light(void){
uint8_t data;
data = *GENERAL_REGISTER1;
@@ -272,7 +275,6 @@ void Read_ep1a_config_registers( ppc_cpu_id_t myCpu ) {
void bsp_start( void )
{
- unsigned char *stack;
uint32_t intrStackStart;
uint32_t intrStackSize;
ppc_cpu_id_t myCpu;
@@ -309,20 +311,9 @@ ShowBATS();
#endif
/*
- * the initial stack has aready been set to this value in start.S
- * so there is no need to set it in r1 again... It is just for info
- * so that It can be printed without accessing R1.
- */
- stack = ((unsigned char*) __rtems_end) + BSP_INIT_STACK_SIZE
- - PPC_MINIMUM_STACK_FRAME_SIZE;
-
- /* tag the bottom (T. Straumann 6/36/2001 <strauman@slac.stanford.edu>) */
- *((uint32_t *)stack) = 0;
-
- /*
* Initialize the interrupt related settings.
*/
- intrStackStart = (uint32_t) __rtems_end + BSP_INIT_STACK_SIZE;
+ intrStackStart = (uint32_t) __rtems_end;
intrStackSize = rtems_configuration_get_interrupt_stack_size();
/*