diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-02-15 14:29:14 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-02-15 14:29:14 +0000 |
commit | fe3af4cce5c60d1e0e449f70b470097826224d26 (patch) | |
tree | 6f14c7aedbeb5e17d250ab8d779dcdc599651607 /cpukit/score/cpu/powerpc/rtems/old-exceptions | |
parent | 2005-02-15 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-fe3af4cce5c60d1e0e449f70b470097826224d26.tar.bz2 |
(CPU_Get_timebase_low, rtems_bsp_delay, rtems_bsp_delay_in_bus_cycles): Remove.
Diffstat (limited to 'cpukit/score/cpu/powerpc/rtems/old-exceptions')
-rw-r--r-- | cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h b/cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h index 2a81936dcd..854cb9f0d2 100644 --- a/cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h +++ b/cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h @@ -795,38 +795,6 @@ void _CPU_ISR_install_raw_handler( /* end of ISR handler macros */ -/* - * Simple spin delay in microsecond units for device drivers. - * This is very dependent on the clock speed of the target. - */ - -#ifndef ASM - -#define CPU_Get_timebase_low( _value ) \ - asm volatile( "mftb %0" : "=r" (_value) ) - -#define rtems_bsp_delay( _microseconds ) \ - do { \ - uint32_t start, ticks, now; \ - CPU_Get_timebase_low( start ) ; \ - ticks = (_microseconds) * _CPU_Table.clicks_per_usec; \ - do \ - CPU_Get_timebase_low( now ) ; \ - while (now - start < ticks); \ - } while (0) - -#define rtems_bsp_delay_in_bus_cycles( _cycles ) \ - do { \ - uint32_t start, now; \ - CPU_Get_timebase_low( start ); \ - do \ - CPU_Get_timebase_low( now ); \ - while (now - start < (_cycles)); \ - } while (0) - -#endif - - /* Context handler macros */ /* |