summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
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/gen83xx/startup/bspstart.c
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/gen83xx/startup/bspstart.c')
-rw-r--r--c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c b/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
index 81f2566b8e..e22c4aabbd 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c
@@ -38,17 +38,8 @@
SPR_RW(SPRG0)
SPR_RW(SPRG1)
-/*
- * The original table from the application (in ROM) and our copy of it with
- * some changes. Configuration is defined in <confdefs.h>. Make sure that
- * our configuration tables are uninitialized so that they get allocated in
- * the .bss section (RAM).
- */
-extern rtems_configuration_table Configuration;
extern unsigned long intrStackPtr;
-rtems_configuration_table BSP_Configuration;
static char *BSP_heap_start, *BSP_heap_end;
-char *rtems_progname;
/*
* constants for c_clock driver:
@@ -156,10 +147,10 @@ void bsp_calc_mem_layout()
* - Heap starts at end of workspace
* - Heap ends at end of memory - reserved memory area
*/
- BSP_Configuration.work_space_start = _WorkspaceBase;
+ Configuration.work_space_start = _WorkspaceBase;
- BSP_heap_start = ((char *)BSP_Configuration.work_space_start +
- BSP_Configuration.work_space_size);
+ BSP_heap_start = ((char *)Configuration.work_space_start +
+ rtems_configuration_get_work_space_size());
#if defined(HAS_UBOOT)
BSP_heap_end = (uboot_bdinfo_ptr->bi_memstart