summaryrefslogtreecommitdiffstats
path: root/cpukit/score
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2005-02-15 15:10:30 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2005-02-15 15:10:30 +0000
commit81f88fe8a1afac0c7a40163394ba8e758d4f2408 (patch)
tree806623deb863e7c5979b09304b19c05914f05962 /cpukit/score
parent(PPC_Get_timebase_register): Remove. (diff)
downloadrtems-81f88fe8a1afac0c7a40163394ba8e758d4f2408.tar.bz2
(PPC_Get_timebase_register, PPC_Set_timebase_register): Remove.
Diffstat (limited to 'cpukit/score')
-rw-r--r--cpukit/score/cpu/powerpc/rtems/powerpc/registers.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h b/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h
index 42c082c5cf..c4a72b170c 100644
--- a/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h
+++ b/cpukit/score/cpu/powerpc/rtems/powerpc/registers.h
@@ -250,43 +250,6 @@ lidate */
#define SR14 14
#define SR15 15
-#ifndef ASM
-/*
- * 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;
-}
-
-static inline void PPC_Set_timebase_register (uint64_t tbr)
-{
- uint32_t tbr_low;
- uint32_t tbr_high;
-
- tbr_low = (tbr & 0xffffffff) ;
- tbr_high = (tbr >> 32) & 0xffffffff;
- asm volatile( "mtspr 284, %0" : : "r" (tbr_low));
- asm volatile( "mtspr 285, %0" : : "r" (tbr_high));
-
-}
-#endif
-
#define _CPU_MSR_GET( _msr_value ) \
do { \
_msr_value = 0; \