diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-11 15:49:53 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-12-11 15:49:53 +0000 |
commit | 12bd47efc0f50d673c10528ed601eaf8b54f182b (patch) | |
tree | d775bb30121bac016ab20aa95e4b3d40ba205a0a /c/src/lib/libbsp/m68k/idp | |
parent | 2007-12-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-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/idp')
-rw-r--r-- | c/src/lib/libbsp/m68k/idp/ChangeLog | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/m68k/idp/clock/ckinit.c | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/m68k/idp/include/bsp.h | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/m68k/idp/startup/bspstart.c | 12 |
4 files changed, 8 insertions, 14 deletions
diff --git a/c/src/lib/libbsp/m68k/idp/ChangeLog b/c/src/lib/libbsp/m68k/idp/ChangeLog index 8e13047923..37ea65c3b2 100644 --- a/c/src/lib/libbsp/m68k/idp/ChangeLog +++ b/c/src/lib/libbsp/m68k/idp/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/idp/clock/ckinit.c b/c/src/lib/libbsp/m68k/idp/clock/ckinit.c index bf3f4df2d6..603a382edf 100644 --- a/c/src/lib/libbsp/m68k/idp/clock/ckinit.c +++ b/c/src/lib/libbsp/m68k/idp/clock/ckinit.c @@ -77,7 +77,7 @@ rtems_isr Clock_isr( libgcc.a for gcc with software floating point support, this is not a problem */ Clock_isrs = - (int)(BSP_Configuration.microseconds_per_tick / 1000); + (int)(rtems_configuration_get_microseconds_per_tick() / 1000); } else Clock_isrs -= 1; diff --git a/c/src/lib/libbsp/m68k/idp/include/bsp.h b/c/src/lib/libbsp/m68k/idp/include/bsp.h index 6b0917f6d8..abfa84b4b2 100644 --- a/c/src/lib/libbsp/m68k/idp/include/bsp.h +++ b/c/src/lib/libbsp/m68k/idp/include/bsp.h @@ -45,8 +45,6 @@ /* miscellaneous stuff assumed to exist */ -extern rtems_configuration_table BSP_Configuration; - extern m68k_isr_entry M68Kvec[]; /* vector table address */ /* functions */ diff --git a/c/src/lib/libbsp/m68k/idp/startup/bspstart.c b/c/src/lib/libbsp/m68k/idp/startup/bspstart.c index c3d9431856..558e4aec56 100644 --- a/c/src/lib/libbsp/m68k/idp/startup/bspstart.c +++ b/c/src/lib/libbsp/m68k/idp/startup/bspstart.c @@ -28,16 +28,6 @@ extern struct duart_regs duart_info; void led_putnum(); /* - * 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 */ @@ -89,7 +79,7 @@ void bsp_start( void ) rtems_cache_enable_instruction(); rtems_cache_enable_data(); - BSP_Configuration.work_space_start = (void *) &_WorkspaceBase; + Configuration.work_space_start = (void *) &_WorkspaceBase; /* led_putnum('e'); * for debugging purposes only */ |