summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-02-15 15:10:03 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-02-15 15:10:03 +0000
commit5d9bcd5411b5059843f882fae8deea598872651d (patch)
tree3fe4f7f2f18f119eb0c463cb374941588ef0945a /cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h
parent2005-02-15 Ralf Corsepius <ralf.corsepius@rtems.org> (diff)
downloadrtems-5d9bcd5411b5059843f882fae8deea598872651d.tar.bz2
(PPC_Get_timebase_register): Remove.
Diffstat (limited to 'cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h')
-rw-r--r--cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h b/cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h
index ba6734ba64..fbbd87cd7c 100644
--- a/cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h
+++ b/cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h
@@ -1066,29 +1066,6 @@ void _CPU_Fatal_error(
uint32_t _error
);
-/*
- * Routines to access the time base register
- */
-
-static inline uint64_t PPC_Get_timebase_register( void )
-{
- uint32_t tbr_low;
- uint32_t tbr_high;
- uint32_t tbr_high_old;
- uint64_t tbr;
-
- do {
- asm volatile( "mftbu %0" : "=r" (tbr_high_old));
- asm volatile( "mftb %0" : "=r" (tbr_low));
- asm volatile( "mftbu %0" : "=r" (tbr_high));
- } while ( tbr_high_old != tbr_high );
-
- tbr = tbr_high;
- tbr <<= 32;
- tbr |= tbr_low;
- return tbr;
-}
-
#endif /* ASM */
#ifdef __cplusplus