From ed46b47fabfc3bc389a3d804d75c50ea34ed5a64 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 21 Dec 1999 20:29:40 +0000 Subject: Moved PPC_Set_decrementer() and PPC_Get_timebase_register() to old_exception_processing tree. --- .../powerpc/support/new_exception_processing/cpu.h | 32 ---------------------- 1 file changed, 32 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/support/new_exception_processing') diff --git a/c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu.h b/c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu.h index 145e2924eb..bf2204fd3d 100644 --- a/c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu.h +++ b/c/src/lib/libbsp/powerpc/support/new_exception_processing/cpu.h @@ -938,38 +938,6 @@ static inline unsigned int CPU_swap_u32( #define CPU_swap_u16( value ) \ (((value&0xff) << 8) | ((value >> 8)&0xff)) -/* - * Routines to access the decrementer register - */ - -#define PPC_Set_decrementer( _clicks ) \ - do { \ - asm volatile( "mtdec %0" : "=r" ((_clicks)) : "r" ((_clicks)) ); \ - } while (0) - -/* - * Routines to access the time base register - */ - -static inline unsigned64 PPC_Get_timebase_register( void ) -{ - unsigned32 tbr_low; - unsigned32 tbr_high; - unsigned32 tbr_high_old; - unsigned64 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 /* ndef ASM */ #ifdef __cplusplus -- cgit v1.2.3