summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/shared/include/cpu.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-04-17 19:39:16 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-04-17 19:39:16 +0000
commitb929c2de1db33aee7ac850f8e3a01cddec1eaf26 (patch)
treeeaaf36260e1d11859831920120ea7e8d3f3f44a0 /c/src/lib/libcpu/powerpc/shared/include/cpu.h
parent2002-04-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-b929c2de1db33aee7ac850f8e3a01cddec1eaf26.tar.bz2
2001-04-17 Joel Sherrill <joel@OARcorp.com>
* shared/include/cpu.h: Added ifndef ASM.
Diffstat (limited to 'c/src/lib/libcpu/powerpc/shared/include/cpu.h')
-rw-r--r--c/src/lib/libcpu/powerpc/shared/include/cpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/c/src/lib/libcpu/powerpc/shared/include/cpu.h b/c/src/lib/libcpu/powerpc/shared/include/cpu.h
index fa68d6604e..7d61aef09b 100644
--- a/c/src/lib/libcpu/powerpc/shared/include/cpu.h
+++ b/c/src/lib/libcpu/powerpc/shared/include/cpu.h
@@ -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 { \