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/sparc/leon3/clock/ckinit.c | |
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 '')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/clock/ckinit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c b/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c index 172aec5f09..bde71411f6 100644 --- a/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c +++ b/c/src/lib/libbsp/sparc/leon3/clock/ckinit.c @@ -31,8 +31,6 @@ * The Real Time Clock Counter Timer uses this trap type. */ -extern rtems_configuration_table Configuration; - #if defined(RTEMS_MULTIPROCESSING) #define LEON3_CLOCK_INDEX \ (rtems_configuration_get_user_multiprocessing_table() ? LEON3_Cpu_Index : 0) @@ -83,7 +81,7 @@ static int clkirq; #define Clock_driver_support_initialize_hardware() \ do { \ LEON3_Timer_Regs->timer[LEON3_CLOCK_INDEX].reload = \ - BSP_Configuration.microseconds_per_tick - 1; \ + rtems_configuration_get_microseconds_per_tick() - 1; \ \ LEON3_Timer_Regs->timer[LEON3_CLOCK_INDEX].conf = \ LEON3_GPTIMER_EN | LEON3_GPTIMER_RL | \ |