diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-04 18:05:09 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-04 18:05:09 +0000 |
commit | f817b0283cce904d0bcb48cf9e641c2b40ba8f38 (patch) | |
tree | f8d686387ff9cf0639e38887ad23aef46e57db94 /c/src/lib/libcpu/powerpc/mpc860/clock/clock.c | |
parent | Added first stab at mkgnatnewlib. (diff) | |
download | rtems-f817b0283cce904d0bcb48cf9e641c2b40ba8f38.tar.bz2 |
The files in libcpu should not be directly dependent on any BSP. In
particular, using bsp.h, or getting information from the BSP which
should properly be obtained from RTEMS is forbidden. This is
necessary to strengthen the division between the BSP independent
parts of RTEMS and the BSPs themselves. This started after
comments and analysis by Ralf Corsepius <corsepiu@faw.uni-ulm.de>.
The changes primarily eliminated the need to include bsp.h and
peeking at BSP_Configuration. The use of Cpu_table in each
BSP needs to be eliminated.
Diffstat (limited to 'c/src/lib/libcpu/powerpc/mpc860/clock/clock.c')
-rw-r--r-- | c/src/lib/libcpu/powerpc/mpc860/clock/clock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/c/src/lib/libcpu/powerpc/mpc860/clock/clock.c b/c/src/lib/libcpu/powerpc/mpc860/clock/clock.c index d63cd5a5cf..452b939a6d 100644 --- a/c/src/lib/libcpu/powerpc/mpc860/clock/clock.c +++ b/c/src/lib/libcpu/powerpc/mpc860/clock/clock.c @@ -36,7 +36,7 @@ * $Id$ */ -#include <bsp.h> +#include <rtems.h> #include <clockdrv.h> #include <rtems/libio.h> @@ -74,7 +74,7 @@ void Install_clock(rtems_isr_entry clock_isr) Clock_driver_ticks = 0; - pit_value = BSP_Configuration.microseconds_per_tick / + pit_value = rtems_configuration_get_microseconds_per_tick() / Cpu_table.clicks_per_usec; if (pit_value == 0) { pit_value = 0xffff; @@ -85,7 +85,7 @@ void Install_clock(rtems_isr_entry clock_isr) if (pit_value > 0xffff) { /* pit is only 16 bits long */ rtems_fatal_error_occurred(-1); } - if (BSP_Configuration.ticks_per_timeslice) { + if ( rtems_configuration_get_ticks_per_timeslice() ) { /* * initialize the interval here @@ -131,7 +131,7 @@ ReInstall_clock(rtems_isr_entry new_clock_isr) void Clock_exit(void) { - if ( BSP_Configuration.ticks_per_timeslice ) { + if ( rtems_configuration_get_ticks_per_timeslice() ) { /* disable PIT and PIT interrupts */ m860.piscr &= ~(M860_PISCR_PTE | M860_PISCR_PIE); |