2001-04-17 Joel Sherrill <joel@OARcorp.com>

* shared/include/cpu.h: Added ifndef ASM.
This commit is contained in:
Joel Sherrill
2002-04-17 19:39:16 +00:00
parent d25d17b282
commit b929c2de1d
3 changed files with 7 additions and 1 deletions

View File

@@ -179,6 +179,7 @@ n:
* Routines to access the time base register
*/
#ifndef ASM
static inline unsigned long long PPC_Get_timebase_register( void )
{
unsigned long tbr_low;
@@ -209,7 +210,7 @@ static inline void PPC_Set_timebase_register (unsigned long long tbr)
asm volatile( "mtspr 285, %0" : : "r" (tbr_high));
}
#endif
#endif /* ASM */
#define _CPU_MSR_GET( _msr_value ) \
do { \