aboutsummaryrefslogtreecommitdiffstats
path: root/main/asterisk.c
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-19 16:07:23 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-19 16:07:23 +0000
commit75e26dc575feb1d2e72b729c984446bfdec7f695 (patch)
tree49f959b3dbf1656b329d88d0ba22fe2a0ebb86c7 /main/asterisk.c
parentad20f43e651d5c81d7c278a4f86d126283149782 (diff)
The RDTSC instruction was introduced on the Pentium line of microprocessors,
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: http://svn.digium.com/svn/asterisk/branches/1.4@123869 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/asterisk.c')
-rw-r--r--main/asterisk.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/asterisk.c b/main/asterisk.c
index a5784884e..17b3581f1 100644
--- a/main/asterisk.c
+++ b/main/asterisk.c
@@ -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)