parent
4f18760c85
commit
7e2e4a4e56
@ -0,0 +1,32 @@
|
||||
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
|
Loading…
Reference in new issue