2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>

* README, clock/ckinit.c, include/bsp.h, startup/bspstart.c: 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:49:10 +00:00
parent 94beb19881
commit 040b74f020
5 changed files with 10 additions and 16 deletions

View File

@@ -1,3 +1,9 @@
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* README, clock/ckinit.c, include/bsp.h, startup/bspstart.c: 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>
* include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field * include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field

View File

@@ -135,7 +135,7 @@ Changed "typedef char signed8" to "typedef signed char signed8".
*** clock/ *** clock/
TODO: Add set_vector support. Figure out what to do with Clock_exit(). TODO: Add set_vector support. Figure out what to do with Clock_exit().
TODO: Pre-compute (BSP_Configuration.microseconds_per_tick/1000) so that TODO: Pre-compute (rtems_configuration_get_microseconds_per_tick()/1000) so that
it doesn't have to be re-computed on each Clock_isr(). it doesn't have to be re-computed on each Clock_isr().
*** console/ *** console/

View File

@@ -73,7 +73,7 @@ rtems_isr Clock_isr(
if ( Clock_isrs == 1 ) { if ( Clock_isrs == 1 ) {
rtems_clock_tick(); rtems_clock_tick();
Clock_isrs = BSP_Configuration.microseconds_per_tick / 1000; Clock_isrs = rtems_configuration_get_microseconds_per_tick() / 1000;
} }
else else
Clock_isrs -= 1; Clock_isrs -= 1;
@@ -84,7 +84,7 @@ void Install_clock(
) )
{ {
Clock_driver_ticks = 0; Clock_driver_ticks = 0;
Clock_isrs = BSP_Configuration.microseconds_per_tick / 1000; Clock_isrs = rtems_configuration_get_microseconds_per_tick() / 1000;
set_vector( clock_isr, CLOCK_VECTOR, 1 ); set_vector( clock_isr, CLOCK_VECTOR, 1 );

View File

@@ -73,8 +73,6 @@ extern "C" {
/* miscellaneous stuff assumed to exist */ /* miscellaneous stuff assumed to exist */
extern rtems_configuration_table BSP_Configuration;
extern m68k_isr_entry M68Kvec[]; /* vector table address */ extern m68k_isr_entry M68Kvec[]; /* vector table address */
/* functions */ /* functions */

View File

@@ -20,16 +20,6 @@
#include <rtems/libio.h> #include <rtems/libio.h>
#include <rtems/libcsupport.h> #include <rtems/libcsupport.h>
/*
* The original table from the application and our copy of it with
* some changes.
*/
extern rtems_configuration_table Configuration;
rtems_configuration_table BSP_Configuration;
char *rtems_progname;
/* /*
* Use the shared implementations of the following routines * Use the shared implementations of the following routines
*/ */
@@ -68,5 +58,5 @@ void bsp_start( void )
* not malloc'ed. It is just "pulled from the air". * not malloc'ed. It is just "pulled from the air".
*/ */
BSP_Configuration.work_space_start = (void *) &_WorkspaceBase; Configuration.work_space_start = (void *) &_WorkspaceBase;
} }