Ignore:
Timestamp:
Nov 4, 1999, 6:05:09 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
707f5c7
Parents:
d5704c6
Message:

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@…>.
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/mpc860/clock/clock.c

    rd5704c6 rf817b02  
    3737 */
    3838
    39 #include <bsp.h>
     39#include <rtems.h>
    4040#include <clockdrv.h>
    4141#include <rtems/libio.h>
     
    7575  Clock_driver_ticks = 0;
    7676 
    77   pit_value = BSP_Configuration.microseconds_per_tick /
     77  pit_value = rtems_configuration_get_microseconds_per_tick() /
    7878               Cpu_table.clicks_per_usec;
    7979  if (pit_value == 0) {
     
    8686    rtems_fatal_error_occurred(-1);
    8787  } 
    88   if (BSP_Configuration.ticks_per_timeslice) {
     88  if ( rtems_configuration_get_ticks_per_timeslice() ) {
    8989   
    9090    /*
     
    132132Clock_exit(void)
    133133{
    134   if ( BSP_Configuration.ticks_per_timeslice ) {
     134  if ( rtems_configuration_get_ticks_per_timeslice() ) {
    135135    /* disable PIT and PIT interrupts */
    136136    m860.piscr &= ~(M860_PISCR_PTE | M860_PISCR_PIE);
Note: See TracChangeset for help on using the changeset viewer.