diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-14 15:52:24 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-06-14 15:52:24 +0000 |
commit | 61bd030179f252d14f9639cf4921eb4eee07b5ef (patch) | |
tree | eca78226b814ad9e50f0d73fbe00ffaf67ab61e0 /c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c | |
parent | Must now pull in cache management code from libcpu. (diff) | |
download | rtems-61bd030179f252d14f9639cf4921eb4eee07b5ef.tar.bz2 |
Moved PowerPC cache management code to libcpu. Also compiled
mpc8xx libcpu support for the first time and remove includes
of bsp.h, references to BSP_Configuration, and Cpu_table. All
of these can be obtained directly from RTEMS now.
Diffstat (limited to 'c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c')
-rw-r--r-- | c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c b/c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c index 50c2a3e00a..d9fbbe4a39 100644 --- a/c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c +++ b/c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c @@ -43,12 +43,9 @@ * $Id$ */ -#include <bsp.h> #include <rtems.h> #include <mpc8xx.h> -extern rtems_cpu_table Cpu_table; /* owned by BSP */ - static volatile rtems_unsigned32 Timer_starting; static rtems_boolean Timer_driver_Find_average_overhead; @@ -86,10 +83,10 @@ int Read_timer(void) return total; /* in XXX microsecond units */ else { - if ( total < Cpu_table.timer_least_valid ) { + if ( total < rtems_cpu_configuration_get_timer_least_valid() ) { return 0; /* below timer resolution */ } - return (total - Cpu_table.timer_average_overhead); + return (total - rtems_cpu_configuration_get_timer_average_overhead()); } } |