summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/no_cpu/no_bsp
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/no_cpu/no_bsp
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/no_cpu/no_bsp')
-rw-r--r--c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog6
-rw-r--r--c/src/lib/libbsp/no_cpu/no_bsp/clock/ckinit.c2
-rw-r--r--c/src/lib/libbsp/no_cpu/no_bsp/include/bsp.h4
-rw-r--r--c/src/lib/libbsp/no_cpu/no_bsp/startup/bspstart.c11
4 files changed, 8 insertions, 15 deletions
diff --git a/c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog b/c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog
index 5d6837a7d3..dcf43232dc 100644
--- a/c/src/lib/libbsp/no_cpu/no_bsp/ChangeLog
+++ b/c/src/lib/libbsp/no_cpu/no_bsp/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/no_cpu/no_bsp/clock/ckinit.c b/c/src/lib/libbsp/no_cpu/no_bsp/clock/ckinit.c
index 640710baa6..240ab5ebe1 100644
--- a/c/src/lib/libbsp/no_cpu/no_bsp/clock/ckinit.c
+++ b/c/src/lib/libbsp/no_cpu/no_bsp/clock/ckinit.c
@@ -94,7 +94,7 @@ void Install_clock(
*/
Clock_driver_ticks = 0;
- Clock_isrs = BSP_Configuration.microseconds_per_tick / 1000;
+ Clock_isrs = rtems_configuration_get_microseconds_per_tick() / 1000;
Old_ticker = (rtems_isr_entry) set_vector( clock_isr, CLOCK_VECTOR, 1 );
/*
diff --git a/c/src/lib/libbsp/no_cpu/no_bsp/include/bsp.h b/c/src/lib/libbsp/no_cpu/no_bsp/include/bsp.h
index 9071c2e6fd..8831c5557a 100644
--- a/c/src/lib/libbsp/no_cpu/no_bsp/include/bsp.h
+++ b/c/src/lib/libbsp/no_cpu/no_bsp/include/bsp.h
@@ -41,10 +41,6 @@ extern "C" {
#define RAM_START 0
#define RAM_END 0x100000
-/* miscellaneous stuff assumed to exist */
-
-extern rtems_configuration_table BSP_Configuration;
-
/*
* Device Driver Table Entries
*/
diff --git a/c/src/lib/libbsp/no_cpu/no_bsp/startup/bspstart.c b/c/src/lib/libbsp/no_cpu/no_bsp/startup/bspstart.c
index 4c37dd5286..f66875a82f 100644
--- a/c/src/lib/libbsp/no_cpu/no_bsp/startup/bspstart.c
+++ b/c/src/lib/libbsp/no_cpu/no_bsp/startup/bspstart.c
@@ -21,15 +21,6 @@
#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
*/
@@ -88,5 +79,5 @@ void bsp_start( void )
* not malloc'ed. It is just "pulled from the air".
*/
- BSP_Configuration.work_space_start = (void *) 0;
+ Configuration.work_space_start = (void *) 0;
}