You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
jack-audio-connection-kit/jack-ppc64-long.patch

33 lines
771 B

diff -up jack-1.9.8/linux/cycles.h\~ jack-1.9.8/linux/cycles.h
--- jack-1.9.8/linux/cycles.h~ 2011-12-19 12:54:27.000000000 +0100
+++ jack-1.9.8/linux/cycles.h 2012-03-02 23:57:29.200812059 +0100
@@ -77,16 +77,24 @@ static inline cycles_t get_cycles(void)
{
cycles_t ret = 0;
+#ifdef __powerpc64__
+# define LONGT ".llong"
+#else
+# define LONGT ".long"
+#endif
+
__asm__ __volatile__(
"98: mftb %0\n"
"99:\n"
".section __ftr_fixup,\"a\"\n"
" .long %1\n"
" .long 0\n"
- " .long 98b\n"
- " .long 99b\n"
+ " " LONGT " 98b\n"
+ " " LONGT " 99b\n"
".previous"
: "=r" (ret) : "i" (CPU_FTR_601));
+
+#undef LONGT
return ret;
}
Diff finished. Fri Mar 2 23:57:31 2012