forked from Imagelibrary/rtems
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:
@@ -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>
|
2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||||
|
|
||||||
* startup/bspstart.c, startup/bspstart.c.nocache: Move
|
* startup/bspstart.c, startup/bspstart.c.nocache: Move
|
||||||
|
|||||||
@@ -71,8 +71,6 @@ extern int rtems_enet_driver_attach (struct rtems_bsdnet_ifconfig *config, int a
|
|||||||
|
|
||||||
/* miscellaneous stuff assumed to exist */
|
/* miscellaneous stuff assumed to exist */
|
||||||
|
|
||||||
extern rtems_configuration_table BSP_Configuration;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Device Driver Table Entries
|
* Device Driver Table Entries
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -32,16 +32,7 @@
|
|||||||
SPR_RW(SPRG0)
|
SPR_RW(SPRG0)
|
||||||
SPR_RW(SPRG1)
|
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;
|
extern unsigned long intrStackPtr;
|
||||||
rtems_configuration_table BSP_Configuration;
|
|
||||||
char *rtems_progname;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Driver configuration parameters
|
* Driver configuration parameters
|
||||||
@@ -195,7 +186,7 @@ void bsp_start(void)
|
|||||||
* In this case, the memory is not malloc'ed. It is just
|
* In this case, the memory is not malloc'ed. It is just
|
||||||
* "pulled from the air".
|
* "pulled from the air".
|
||||||
*/
|
*/
|
||||||
BSP_Configuration.work_space_start = (void *)&_WorkspaceBase;
|
Configuration.work_space_start = (void *)&_WorkspaceBase;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* initialize the device driver parameters
|
* initialize the device driver parameters
|
||||||
@@ -237,7 +228,7 @@ void bsp_start(void)
|
|||||||
/*
|
/*
|
||||||
* Call this in case we use TERMIOS for console I/O
|
* 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.scc2.sccm=0;
|
||||||
m8xx.scc2p.rbase=0;
|
m8xx.scc2p.rbase=0;
|
||||||
|
|||||||
@@ -24,16 +24,6 @@
|
|||||||
#include <rtems/libio.h>
|
#include <rtems/libio.h>
|
||||||
#include <rtems/libcsupport.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
|
* Driver configuration parameters
|
||||||
*/
|
*/
|
||||||
@@ -153,7 +143,7 @@ void bsp_start(void)
|
|||||||
* In this case, the memory is not malloc'ed. It is just
|
* In this case, the memory is not malloc'ed. It is just
|
||||||
* "pulled from the air".
|
* "pulled from the air".
|
||||||
*/
|
*/
|
||||||
BSP_Configuration.work_space_start = (void *)&_WorkspaceBase;
|
Configuration.work_space_start = (void *)&_WorkspaceBase;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* initialize the device driver parameters
|
* initialize the device driver parameters
|
||||||
@@ -177,7 +167,7 @@ void bsp_start(void)
|
|||||||
/*
|
/*
|
||||||
* Call this in case we use TERMIOS for console I/O
|
* 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.scc2.sccm=0;
|
||||||
m8xx.scc2p.rbase=0;
|
m8xx.scc2p.rbase=0;
|
||||||
|
|||||||
Reference in New Issue
Block a user