Ignore:
Timestamp:
Nov 28, 2007, 9:45:06 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
641c3bd
Parents:
28f398e7
Message:

2007-11-28 Joel Sherrill <joel.sherrill@…>

  • mpc5xx/clock/clock.c, mpc5xx/timer/timer.c, mpc8260/clock/clock.c, mpc8260/cpm/brg.c, mpc8260/timer/timer.c, mpc8xx/clock/clock.c, mpc8xx/console-generic/console-generic.c, mpc8xx/timer/timer.c, new-exceptions/raw_exception.c, old-exceptions/cpu.c, ppc403/clock/clock.c, ppc403/console/console.c, ppc403/console/console.c.polled, ppc403/console/console405.c, ppc403/ictrl/ictrl.c, ppc403/irq/ictrl.c, ppc403/timer/timer.c, ppc403/tty_drv/tty_drv.c: Eliminate PowerPC specific elements from the CPU Table. They have been replaced with variables named bsp_XXX as needed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/mpc5xx/timer/timer.c

    r28f398e7 rc4cc8199  
    3939 *  Derived from c/src/lib/libcpu/hppa1_1/timer/timer.c:
    4040 *
    41  *  COPYRIGHT (c) 1989-1998.
     41 *  COPYRIGHT (c) 1989-2007.
    4242 *  On-Line Applications Research Corporation (OAR).
    4343 *
     
    8080}
    8181
    82 #ifndef  rtems_cpu_configuration_get_timer_least_valid
    83 #define  rtems_cpu_configuration_get_timer_least_valid() 0
    84 #endif
    85 
    86 #ifndef  rtems_cpu_configuration_get_timer_average_overhead
    87 #define  rtems_cpu_configuration_get_timer_average_overhead() 0
    88 #endif
    89 
    9082int Read_timer(void)
    9183{
    9284  uint32_t clicks;
    9385  uint32_t total;
     86  extern uint32_t bsp_timer_least_valid;
     87  extern uint32_t bsp_timer_average_overhead;
    9488
    9589  clicks = get_itimer();
     
    10195
    10296  else {
    103     if ( total < rtems_cpu_configuration_get_timer_least_valid() ) {
     97    if ( total < bsp_timer_least_valid ) {
    10498      return 0;            /* below timer resolution */
    10599    }
    106     return (total - rtems_cpu_configuration_get_timer_average_overhead());
     100    return (total - bsp_timer_average_overhead);
    107101  }
    108102}
Note: See TracChangeset for help on using the changeset viewer.