summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixCompat.c
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2012-04-26 13:52:58 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2012-04-26 13:52:58 (GMT)
commit559b06ad27d1a68be117a331a2f62219b2daa6f5 (patch)
tree502e16aa19987a0abef1d255638a9d39a00bd4ab /unix/tclUnixCompat.c
parentbfcb55a861fe14618d3244a4da3617595e1e2444 (diff)
parent16b4e79286e53eb98ef501a25def03233fda42bc (diff)
downloadtcl-559b06ad27d1a68be117a331a2f62219b2daa6f5.zip
tcl-559b06ad27d1a68be117a331a2f62219b2daa6f5.tar.gz
tcl-559b06ad27d1a68be117a331a2f62219b2daa6f5.tar.bz2
merge trunk
Diffstat (limited to 'unix/tclUnixCompat.c')
-rw-r--r--unix/tclUnixCompat.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/unix/tclUnixCompat.c b/unix/tclUnixCompat.c
index 48ba4d3..d3da962 100644
--- a/unix/tclUnixCompat.c
+++ b/unix/tclUnixCompat.c
@@ -990,7 +990,11 @@ TclWinCPUID(
{
int status = TCL_ERROR;
- /* There is no reason this couldn't be implemented on UNIX as well */
+#ifdef HAVE_CPUID
+ __asm__ __volatile__ ("cpuid":\
+ "=a" (regsPtr[0]), "=b" (regsPtr[1]), "=c" (regsPtr[2]), "=d" (regsPtr[3]) : "a" (index));
+ status = TCL_OK;
+#endif
return status;
}