summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/arch/socppc/stand/boot/time.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arch/socppc/stand/boot/time.c b/sys/arch/socppc/stand/boot/time.c
index b4def65f22b..f2e8ad25856 100644
--- a/sys/arch/socppc/stand/boot/time.c
+++ b/sys/arch/socppc/stand/boot/time.c
@@ -5,4 +5,8 @@
time_t
getsecs(void)
{
+ uint32_t count;
+
+ __asm volatile ("mftb %0" : "=r" (count));
+ return (count / 66666666);
}