diff options
Diffstat (limited to 'c/src/lib/libbsp/sh/shsim/startup/bspstart.c')
-rw-r--r-- | c/src/lib/libbsp/sh/shsim/startup/bspstart.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/c/src/lib/libbsp/sh/shsim/startup/bspstart.c b/c/src/lib/libbsp/sh/shsim/startup/bspstart.c index 02cb7c1892..83027db6f3 100644 --- a/c/src/lib/libbsp/sh/shsim/startup/bspstart.c +++ b/c/src/lib/libbsp/sh/shsim/startup/bspstart.c @@ -43,7 +43,7 @@ char *rtems_progname; /* * Use the shared implementations of the following routines */ - + void bsp_postdriver_hook(void); void bsp_libc_init( void *, uint32_t, int ); @@ -59,11 +59,11 @@ void bsp_libc_init( void *, uint32_t, int ); * not yet initialized. * */ - + void bsp_pretasking_hook(void) { bsp_libc_init(&HeapStart, (char *)&HeapEnd - (char *)&HeapStart, 0); - + #ifdef RTEMS_DEBUG rtems_debug_enable( RTEMS_DEBUG_ALL_MASK ); #endif @@ -78,13 +78,13 @@ void bsp_pretasking_hook(void) void bsp_start( void ) { /* - For real boards you need to setup the hardware + For real boards you need to setup the hardware and need to copy the vector table from rom to ram. - Depending on the board this can either be done from inside the rom + Depending on the board this can either be done from inside the rom startup code, rtems startup code or here. */ - + /* * Allocate the memory for the RTEMS Work Space. This can come from * a variety of places: hard coded address, malloc'ed from outside @@ -100,10 +100,10 @@ void bsp_start( void ) */ BSP_Configuration.work_space_start = (void *) &WorkSpaceStart ; - BSP_Configuration.work_space_size = - (uint32_t) &WorkSpaceEnd - + BSP_Configuration.work_space_size = + (uint32_t) &WorkSpaceEnd - (uint32_t) &WorkSpaceStart ; - + /* * initialize the CPU table for this BSP */ @@ -112,7 +112,7 @@ void bsp_start( void ) _CPU_Interrupt_stack_low = &CPU_Interrupt_stack_low ; _CPU_Interrupt_stack_high = &CPU_Interrupt_stack_high ; - Cpu_table.interrupt_stack_size = + Cpu_table.interrupt_stack_size = (uint32_t) (&CPU_Interrupt_stack_high) - (uint32_t) (&CPU_Interrupt_stack_low) ; #endif @@ -120,7 +120,7 @@ void bsp_start( void ) Cpu_table.pretasking_hook = bsp_pretasking_hook; /* init libc, etc. */ Cpu_table.postdriver_hook = bsp_postdriver_hook; - + #if ( CPU_ALLOCATE_INTERRUPT_STACK == TRUE ) Cpu_table.interrupt_stack_size = CONFIGURE_INTERRUPT_STACK_MEMORY; #endif |