summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-11 15:46:39 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-11 15:46:39 +0000
commited5ba1c9e239cc4dca0652515a64587c4e158dcb (patch)
treed993ddc890130caec7ca99509ea94d07ecef3a18 /c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c
parent2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-ed5ba1c9e239cc4dca0652515a64587c4e158dcb.tar.bz2
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* include/bsp.h, startup/bspstart.c, startup/bspstart.c.nocache: Eliminate copies of the Configuration Table. Use the RTEMS provided accessor macros to obtain configuration fields.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c')
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c b/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c
index 691238256c..4bffa675b5 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c
@@ -32,16 +32,7 @@
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;
-char *rtems_progname;
/*
* Driver configuration parameters
@@ -195,7 +186,7 @@ void bsp_start(void)
* In this case, the memory is not malloc'ed. It is just
* "pulled from the air".
*/
- BSP_Configuration.work_space_start = (void *)&_WorkspaceBase;
+ Configuration.work_space_start = (void *)&_WorkspaceBase;
/*
* initialize the device driver parameters
@@ -237,7 +228,7 @@ void bsp_start(void)
/*
* Call this in case we use TERMIOS for console I/O
*/
- m8xx_uart_reserve_resources( &BSP_Configuration );
+ m8xx_uart_reserve_resources( &Configuration );
m8xx.scc2.sccm=0;
m8xx.scc2p.rbase=0;