Index: kernel/arch/ppc32/include/cycle.h
===================================================================
--- kernel/arch/ppc32/include/cycle.h	(revision 00bb696504df128091618d2a7955209b9f94202f)
+++ kernel/arch/ppc32/include/cycle.h	(revision 84757b5af9dc0d4e1dda4ce09d9bdd14fbc25f11)
@@ -38,5 +38,21 @@
 static inline uint64_t get_cycle(void)
 {
-	return 0;
+	uint32_t lower;
+	uint32_t upper;
+	uint32_t upper2;
+	
+	asm volatile (
+		"1: mftbu %0\n"
+		"mftb %1\n"
+		"mftbu %2\n"
+		"cmpw %0, %2\n"
+		"bne- 1b\n"
+		: "=r" (upper),
+		  "=r" (lower),
+		  "=r" (upper2)
+		:: "cr0"
+	);
+	
+	return ((uint64_t) upper << 32) + (uint64_t) lower;
 }
 
