File jack-ppc-fix.dif of Package jack

--- config/cpu/powerpc/cycles.h-dist	2004-08-05 18:33:31.762822526 +0200
+++ config/cpu/powerpc/cycles.h	2004-08-05 18:34:36.559045930 +0200
@@ -39,6 +39,9 @@ static inline cycles_t get_cycles(void)
 {
 	cycles_t ret = 0;
 
+#ifdef __linux__
+	__asm__ __volatile__("mftb %0\n" : "=r" (ret));
+#else
 	__asm__ __volatile__(
 		"98:	mftb %0\n"
 		"99:\n"
@@ -49,6 +52,7 @@ static inline cycles_t get_cycles(void)
 		"	.long 99b\n"
 		".previous"
 		: "=r" (ret) : "i" (CPU_FTR_601));
+#endif
 	return ret;
 }
 
openSUSE Build Service is sponsored by