From 5d9bcd5411b5059843f882fae8deea598872651d Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 15 Feb 2005 15:10:03 +0000 Subject: (PPC_Get_timebase_register): Remove. --- .../score/cpu/powerpc/rtems/old-exceptions/cpu.h | 23 ---------------------- 1 file changed, 23 deletions(-) (limited to 'cpukit/score/cpu/powerpc/rtems/old-exceptions/cpu.h') 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 -- cgit v1.2.3