summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-11 15:46:47 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-11 15:46:47 +0000
commitf6821c3efbac2652eb40cca06f80a04526eafe04 (patch)
treef428248019c4c8e70bcb34110ea27ed3c75961c3 /c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
parent2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-f6821c3efbac2652eb40cca06f80a04526eafe04.tar.bz2
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* bsp_specs, include/bsp.h, startup/bspstart.c: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/psim/startup/bspstart.c')
-rw-r--r--c/src/lib/libbsp/powerpc/psim/startup/bspstart.c24
1 files changed, 4 insertions, 20 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c b/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
index e9d2c30c64..ae5d186a82 100644
--- a/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/psim/startup/bspstart.c
@@ -45,22 +45,6 @@ void initialize_exceptions(void);
extern int PSIM_INSTRUCTIONS_PER_MICROSECOND;
/*
- * The original table from the application and our copy of it with
- * some changes.
- */
-
-extern rtems_configuration_table Configuration;
-rtems_configuration_table BSP_Configuration;
-
-/*
- * Tells us where to put the workspace in case remote debugger is present.
- */
-
-#if 0
-extern uint32_t rdb_start;
-#endif
-
-/*
* PCI Bus Frequency
*/
unsigned int BSP_bus_frequency;
@@ -111,7 +95,7 @@ void bsp_pretasking_hook(void)
if (heap_start & (CPU_ALIGNMENT-1))
heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1);
- heap_size = BSP_Configuration.work_space_start - (void *)&end;
+ heap_size = Configuration.work_space_start - (void *)&end;
heap_size &= 0xfffffff0; /* keep it as a multiple of 16 bytes */
bsp_libc_init((void *) heap_start, heap_size, 0);
@@ -151,17 +135,17 @@ void bsp_start( void )
bsp_exceptions_in_RAM = FALSE;
- BSP_Configuration.work_space_size += 1024;
+ rtems_configuration_get_work_space_size() += 1024;
work_space_start =
- (unsigned char *)&RAM_END - BSP_Configuration.work_space_size;
+ (unsigned char *)&RAM_END - rtems_configuration_get_work_space_size();
if ( work_space_start <= (unsigned char *)&end ) {
printk( "bspstart: Not enough RAM!!!\n" );
bsp_cleanup();
}
- BSP_Configuration.work_space_start = work_space_start;
+ Configuration.work_space_start = work_space_start;
#if (BSP_DIRTY_MEMORY == 1)
{
memset(&end, 0xCF, (unsigned char *)&RAM_END - (unsigned char *)&end );