From 458bd343e24cda7169c75f079705979891c9abc1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 5 Nov 1999 16:44:02 +0000 Subject: This is another pass at making sure that nothing outside the BSP unnecessarily uses any variables defined by the BSP. On this sweep, use of BSP_Configuration and Cpu_table was eliminated. A significant part of this modification was the addition of macros to access fields in the RTEMS configuration structures. 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 . --- c/src/lib/libcpu/powerpc/ppc403/timer/timer.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'c/src/lib/libcpu/powerpc/ppc403/timer/timer.c') diff --git a/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c b/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c index 0ff48aec90..a45f2b396f 100644 --- a/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c +++ b/c/src/lib/libcpu/powerpc/ppc403/timer/timer.c @@ -36,8 +36,6 @@ #include -extern rtems_cpu_table Cpu_table; /* owned by BSP */ - static volatile rtems_unsigned32 Timer_starting; static rtems_boolean Timer_driver_Find_average_overhead; @@ -78,9 +76,9 @@ int Read_timer() 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()); } } -- cgit v1.2.3