Commit 4e8e5e65 authored by sletz's avatar sletz
Browse files

Jan Engelhardt patch for get_cycles on SPARC.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4033 0c269be4-1314-0410-8aa9-9f06e86f4224
parent 8d535d99
......@@ -24,15 +24,20 @@ Peter L Jones
Devin Anderson
Josh Green
Mario Lang
Arnold Krille
Arnold Krille
Jan Engelhardt
---------------------------
Jackdmp changes log
---------------------------
2010-07-07 Stephane Letz <letz@grame.fr>
* Jan Engelhardt patch for get_cycles on SPARC.
2010-06-29 Stephane Letz <letz@grame.fr>
* Arnold Krille irewire snooping patch.
* Arnold Krille firewire snooping patch.
2010-06-16 Stephane Letz <letz@grame.fr>
......
......@@ -53,6 +53,16 @@ static inline unsigned long get_cycles(void)
#endif
#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 */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment