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.
This commit is contained in:
Joel Sherrill
2007-12-11 15:46:39 +00:00
parent 5023c87431
commit ed5ba1c9e2
4 changed files with 10 additions and 25 deletions

View File

@@ -1,3 +1,9 @@
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.
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* startup/bspstart.c, startup/bspstart.c.nocache: Move

View File

@@ -71,8 +71,6 @@ extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config, int a
/* miscellaneous stuff assumed to exist */
extern rtems_configuration_table BSP_Configuration;
/*
* Device Driver Table Entries
*/

View File

@@ -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;

View File

@@ -24,16 +24,6 @@
#include <rtems/libio.h>
#include <rtems/libcsupport.h>
/*
* 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;
rtems_configuration_table BSP_Configuration;
char *rtems_progname;
/*
* Driver configuration parameters
*/
@@ -153,7 +143,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
@@ -177,7 +167,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;