diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-05 16:44:02 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-11-05 16:44:02 +0000 |
commit | 458bd343e24cda7169c75f079705979891c9abc1 (patch) | |
tree | a9e584c28211674b28d1e37aec005e0e3a25afa1 /c/src/lib/libcpu/powerpc/ppc403/clock/clock.c | |
parent | Eliminated references to stack checker related #defines. (diff) | |
download | rtems-458bd343e24cda7169c75f079705979891c9abc1.tar.bz2 |
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 <corsepiu@faw.uni-ulm.de>.
Diffstat (limited to 'c/src/lib/libcpu/powerpc/ppc403/clock/clock.c')
-rw-r--r-- | c/src/lib/libcpu/powerpc/ppc403/clock/clock.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c b/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c index dfcbea5535..dc019d6b7e 100644 --- a/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c +++ b/c/src/lib/libcpu/powerpc/ppc403/clock/clock.c @@ -43,8 +43,6 @@ #include <stdlib.h> /* for atexit() */ -extern rtems_cpu_table Cpu_table; /* owned by BSP */ - volatile rtems_unsigned32 Clock_driver_ticks; static rtems_unsigned32 pit_value, tick_time; static rtems_boolean auto_restart; @@ -140,7 +138,7 @@ void Install_clock(rtems_isr_entry clock_isr) asm volatile ("mfdcr %0, 0xa0" : "=r" (iocr)); /* IOCR */ - if (Cpu_table.timer_internal_clock) { + if (rtems_cpu_configuration_get_timer_internal_clock()) { iocr &= ~4; /* timer clocked from system clock */ } else { @@ -165,7 +163,7 @@ void Install_clock(rtems_isr_entry clock_isr) auto_restart = 1; pit_value = rtems_configuration_get_microseconds_per_tick() * - Cpu_table.clicks_per_usec; + rtems_cpu_configuration_get_clicks_per_usec(); if ( rtems_configuration_get_ticks_per_timeslice() ) { register rtems_unsigned32 tcr; |