summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/mvme167
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-11 15:49:53 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-12-11 15:49:53 +0000
commit12bd47efc0f50d673c10528ed601eaf8b54f182b (patch)
treed775bb30121bac016ab20aa95e4b3d40ba205a0a /c/src/lib/libbsp/m68k/mvme167
parent2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-12bd47efc0f50d673c10528ed601eaf8b54f182b.tar.bz2
2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* 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.
Diffstat (limited to 'c/src/lib/libbsp/m68k/mvme167')
-rw-r--r--c/src/lib/libbsp/m68k/mvme167/ChangeLog6
-rw-r--r--c/src/lib/libbsp/m68k/mvme167/clock/ckinit.c4
-rw-r--r--c/src/lib/libbsp/m68k/mvme167/include/bsp.h8
-rw-r--r--c/src/lib/libbsp/m68k/mvme167/startup/bspstart.c16
4 files changed, 13 insertions, 21 deletions
diff --git a/c/src/lib/libbsp/m68k/mvme167/ChangeLog b/c/src/lib/libbsp/m68k/mvme167/ChangeLog
index 3b7726d08c..76ef1b2944 100644
--- a/c/src/lib/libbsp/m68k/mvme167/ChangeLog
+++ b/c/src/lib/libbsp/m68k/mvme167/ChangeLog
@@ -1,3 +1,9 @@
+2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * 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>
* include/bsp.h, startup/bspstart.c: Move interrupt_stack_size field
diff --git a/c/src/lib/libbsp/m68k/mvme167/clock/ckinit.c b/c/src/lib/libbsp/m68k/mvme167/clock/ckinit.c
index a4c28bce50..0be6e1fffd 100644
--- a/c/src/lib/libbsp/m68k/mvme167/clock/ckinit.c
+++ b/c/src/lib/libbsp/m68k/mvme167/clock/ckinit.c
@@ -101,7 +101,7 @@ rtems_isr VMEchip2_T2_isr(
long i;
long ct; /* Number of T2 ticks per RTEMS ticks */
- ct = BSP_Configuration.microseconds_per_tick / 1000;
+ ct = rtems_configuration_get_microseconds_per_tick() / 1000;
/*
* May have missed interrupts, so should look at the overflow counter.
@@ -149,7 +149,7 @@ rtems_isr VMEchip2_T2_isr(
void VMEchip2_T2_initialize( void )
{
Clock_driver_ticks = 0;
- Clock_isrs = BSP_Configuration.microseconds_per_tick / 1000;
+ Clock_isrs = rtems_configuration_get_microseconds_per_tick() / 1000;
lcsr->intr_ena &= 0xFDFFFFFF; /* Disable tick timer 2 interrupt */
lcsr->intr_clear = 0x02000000; /* Clear tick timer 2 interrupt */
diff --git a/c/src/lib/libbsp/m68k/mvme167/include/bsp.h b/c/src/lib/libbsp/m68k/mvme167/include/bsp.h
index 6e775ca2da..3732151617 100644
--- a/c/src/lib/libbsp/m68k/mvme167/include/bsp.h
+++ b/c/src/lib/libbsp/m68k/mvme167/include/bsp.h
@@ -332,16 +332,8 @@ m68k_isr_entry set_vector(
* NOTE: Use the standard Clock driver entry
*/
-/*
- * How many libio files we want
- */
-
-#define BSP_LIBIO_MAX_FDS 20
-
/* miscellaneous stuff assumed to exist */
-extern rtems_configuration_table BSP_Configuration;
-
extern m68k_isr_entry M68Kvec[]; /* vector table address */
#ifdef __cplusplus
diff --git a/c/src/lib/libbsp/m68k/mvme167/startup/bspstart.c b/c/src/lib/libbsp/m68k/mvme167/startup/bspstart.c
index fa2034e4cf..260770bd1d 100644
--- a/c/src/lib/libbsp/m68k/mvme167/startup/bspstart.c
+++ b/c/src/lib/libbsp/m68k/mvme167/startup/bspstart.c
@@ -26,15 +26,9 @@
#include <page_table.h>
#include <fatal.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;
+/* XXX If RTEMS let the BSP replace the default fatal error handler... */
rtems_extensions_table user_extension_table;
+
/*
* Use the shared implementations of the following routines.
* Look in rtems/c/src/lib/libbsp/shared/bsppost.c and
@@ -127,9 +121,9 @@ void bsp_start( void )
* supply one with our own fatal error handler that returns control to
* 167Bug.
*/
- if ( BSP_Configuration.User_extension_table == NULL ) {
+ if ( Configuration.User_extension_table == NULL ) {
user_extension_table.fatal = bsp_fatal_error_occurred;
- BSP_Configuration.User_extension_table = &user_extension_table;
+ Configuration.User_extension_table = &user_extension_table;
}
/*
@@ -137,5 +131,5 @@ void bsp_start( void )
* tell the RTEMS configuration where it is. This 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;
}