File jack-sparcv9.diff of Package jack
Without this, there is a link error on SPARC.
---
linux/cycles.h | 10 ++++++++++
1 file changed, 10 insertions(+)
Index: linux/cycles.h
===================================================================
--- linux/cycles.h.orig 2011-12-19 13:54:27.000000000 +0200
+++ linux/cycles.h 2012-02-26 10:53:35.411830224 +0200
@@ -61,6 +61,16 @@ static inline unsigned long long get_cyc
}
#endif /* __sparc_v9__ */
+#ifdef __sparc_v9__
+/* rd is V9 only */
+static inline unsigned long long get_cycles(void)
+{
+ unsigned long long res;
+ __asm__ __volatile__("rd %%tick, %0" : "=r"(res));
+ return res;
+}
+#endif
+
#ifdef __PPC__
/* PowerPC */