aboutsummaryrefslogtreecommitdiff
path: root/include/timebase.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/timebase.h')
-rw-r--r--include/timebase.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/timebase.h b/include/timebase.h
index 4537256..156c296 100644
--- a/include/timebase.h
+++ b/include/timebase.h
@@ -24,6 +24,7 @@
#include <time.h>
+#ifndef __TEST__
static inline unsigned long mftb(void)
{
unsigned long tb;
@@ -34,6 +35,7 @@ static inline unsigned long mftb(void)
asm volatile("mftb %0" : "=r"(tb) : : "memory");
return tb;
}
+#endif
enum tb_cmpval {
TB_ABEFOREB = -1,