Changeset ea57368 in rtems


Ignore:
Timestamp:
Jun 3, 1998, 7:01:21 PM (22 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
70b0d66
Parents:
3c7916f
Message:

Removed PPC_Get_timebase_register() as this is now provided by the PowerPC
port itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/psim/timer/timer.c

    r3c7916f rea57368  
    2929
    3030rtems_boolean Timer_driver_Find_average_overhead;
    31 
    32 static inline rtems_unsigned64 PPC_Get_timebase_register( void )
    33 {
    34   rtems_unsigned32 tbr_low;
    35   rtems_unsigned32 tbr_high;
    36   rtems_unsigned32 tbr_high_old;
    37   rtems_unsigned64 tbr;
    38 
    39   do {
    40     asm volatile( "mftbu %0" : "=r" (tbr_high_old));
    41     asm volatile( "mftb  %0" : "=r" (tbr_low));
    42     asm volatile( "mftbu %0" : "=r" (tbr_high));
    43   } while ( tbr_high_old != tbr_high );
    44 
    45   tbr = tbr_high;
    46   tbr <<= 32;
    47   tbr |= tbr_low;
    48   return tbr;
    49 }
    5031
    5132void Timer_initialize()
Note: See TracChangeset for help on using the changeset viewer.