diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-11 15:46:56 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-11 15:46:56 +0000 |
commit | 4b39acf19ac3fdaf09b333223a703f1951504bd7 (patch) | |
tree | d62e5a3ae45b29dea450c3724c8c7ebe5325e8c3 /c/src/lib/libbsp/powerpc/shared/startup/bspstart.c | |
parent | 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-4b39acf19ac3fdaf09b333223a703f1951504bd7.tar.bz2 |
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* shared/startup/bspstart.c, shared/startup/pretaskinghook.c: Eliminate
copies of the Configuration Table. Use the RTEMS provided accessor
macros to obtain configuration fields.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/powerpc/shared/startup/bspstart.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c b/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c index 8109ea5acc..f8756a4448 100644 --- a/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/shared/startup/bspstart.c @@ -110,15 +110,6 @@ void _BSP_Fatal_error(unsigned int v) } /* - * The original table from the application and our copy of it with - * some changes. - */ - -extern rtems_configuration_table Configuration; -rtems_configuration_table BSP_Configuration; -char *rtems_progname; - -/* * Use the shared implementations of the following routines */ @@ -382,12 +373,12 @@ void bsp_start( void ) bsp_clicks_per_usec = BSP_bus_frequency/(BSP_time_base_divisor * 1000); #ifdef SHOW_MORE_INIT_SETTINGS - printk("BSP_Configuration.work_space_size = %x\n", - BSP_Configuration.work_space_size); + printk("rtems_configuration_get_work_space_size() = %x\n", + rtems_configuration_get_work_space_size()); #endif work_space_start = - (unsigned char *)BSP_mem_size - BSP_Configuration.work_space_size; + (unsigned char *)BSP_mem_size - rtems_configuration_get_work_space_size(); if ( work_space_start <= ((unsigned char *)__rtems_end) + INIT_STACK_SIZE + rtems_configuration_get_interrupt_stack_size()) { @@ -395,7 +386,7 @@ void bsp_start( void ) bsp_cleanup(); } - BSP_Configuration.work_space_start = work_space_start; + Configuration.work_space_start = work_space_start; /* * Initalize RTEMS IRQ system |