]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
The RDTSC instruction was introduced on the Pentium line of microprocessors,
authorTilghman Lesher <tilghman@meg.abyt.es>
Thu, 19 Jun 2008 16:07:23 +0000 (16:07 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Thu, 19 Jun 2008 16:07:23 +0000 (16:07 +0000)
and is not compatible with certain 586 clones, like Cyrix.  Hence, asking for
i386 compatibility was always incorrect. See http://en.wikipedia.org/wiki/RDTSC
(Closes issue #12886)
Reported by tecnoxarxa

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@123869 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/asterisk.c

index a5784884e719e0fb7f224a0127fc92b2ded7c6fb..17b3581f176a57778deffb8d49ac2ecdd4c2d30e 100644 (file)
@@ -414,7 +414,10 @@ int64_t ast_profile(int i, int64_t delta)
        return prof_data->e[i].value;
 }
 
-#if defined ( __i386__) && (defined(__FreeBSD__) || defined(linux))
+/* The RDTSC instruction was introduced on the Pentium processor and is not
+ * implemented on certain clones, like the Cyrix 586. Hence, the previous
+ * expectation of __i386__ was in error. */
+#if defined ( __i686__) && (defined(__FreeBSD__) || defined(linux))
 #if defined(__FreeBSD__)
 #include <machine/cpufunc.h>
 #elif defined(linux)