summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/score603e/startup
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-11 15:50:25 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-11 15:50:25 +0000
commit4130d8e2e2312b72400403570b3d5f88f6f9d6db (patch)
tree8ab81640f610440e061706416fe62c5f1954b87c /c/src/lib/libbsp/powerpc/score603e/startup
parent2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-4130d8e2e2312b72400403570b3d5f88f6f9d6db.tar.bz2
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* 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/score603e/startup')
-rw-r--r--c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c b/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
index f042f07645..b3d2e1433b 100644
--- a/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/score603e/startup/bspstart.c
@@ -42,15 +42,6 @@ unsigned int BSP_time_base_divisor = 1000; /* XXX - Just a guess */
*/
uint32_t bsp_clicks_per_usec;
-/*
- * The original table from the application and our copy of it with
- * some changes.
- */
-
-extern rtems_configuration_table Configuration;
-rtems_configuration_table BSP_Configuration;
-uint32_t bsp_isr_level;
-
void BSP_panic(char *s)
{
printk("%s PANIC %s\n",_RTEMS_version, s);
@@ -88,7 +79,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);
@@ -295,14 +286,14 @@ void bsp_start( void )
*/
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;
/*
* initialize the device driver parameters