diff options
Diffstat (limited to 'c/src/lib/libbsp/sh/gensh2/startup/bspstart.c')
-rw-r--r-- | c/src/lib/libbsp/sh/gensh2/startup/bspstart.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/c/src/lib/libbsp/sh/gensh2/startup/bspstart.c b/c/src/lib/libbsp/sh/gensh2/startup/bspstart.c index 3bddc4fd8a..0b85e5081a 100644 --- a/c/src/lib/libbsp/sh/gensh2/startup/bspstart.c +++ b/c/src/lib/libbsp/sh/gensh2/startup/bspstart.c @@ -29,7 +29,7 @@ #include <bsp.h> #include <rtems/libio.h> #include <rtems/libcsupport.h> - + /* * The original table from the application and our copy of it with * some changes. @@ -48,7 +48,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 ); @@ -64,11 +64,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 @@ -83,10 +83,10 @@ 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 ether be done from inside the rom + Depending on the board this can ether be done from inside the rom startup code, rtems startup code or here. */ @@ -110,9 +110,9 @@ void bsp_start(void) */ BSP_Configuration.work_space_start = (void *) &WorkSpaceStart ; - BSP_Configuration.work_space_size = + BSP_Configuration.work_space_size = &WorkSpaceEnd - &WorkSpaceStart ; - + /* * initialize the CPU table for this BSP */ @@ -122,7 +122,7 @@ void bsp_start(void) _CPU_Interrupt_stack_high = &CPU_Interrupt_stack_high ; /* This isn't used anywhere */ - Cpu_table.interrupt_stack_size = + Cpu_table.interrupt_stack_size = &CPU_Interrupt_stack_high - &CPU_Interrupt_stack_low ; #endif |