summaryrefslogtreecommitdiff
path: root/src/arch/ppc/lib/timebase.S
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/ppc/lib/timebase.S')
-rw-r--r--src/arch/ppc/lib/timebase.S13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/arch/ppc/lib/timebase.S b/src/arch/ppc/lib/timebase.S
new file mode 100644
index 0000000000..48171db498
--- /dev/null
+++ b/src/arch/ppc/lib/timebase.S
@@ -0,0 +1,13 @@
+/* $Id$ */
+/* Copyright 1999-2000 AG Electronics Ltd. */
+/* This code is distributed without warranty under the GPL v2 (see COPYING) */
+
+ .text
+ .globl _timebase
+_timebase:
+ mftbu 3
+ mftb 4
+ mftbu 5
+ cmpw 3, 5
+ bne _timebase
+ blr