diff options
| author | ferrieux <ferrieux@users.sourceforge.net> | 2012-04-30 12:55:24 (GMT) |
|---|---|---|
| committer | ferrieux <ferrieux@users.sourceforge.net> | 2012-04-30 12:55:24 (GMT) |
| commit | a0475c5cf6d86e396657f10115fa8e5ed1410788 (patch) | |
| tree | abbebaee230f5f3843756adee05df0a1aa129e91 /unix/tclUnixCompat.c | |
| parent | fad99269f87eab4346bbbd03cc025d5be45477e0 (diff) | |
| download | tcl-a0475c5cf6d86e396657f10115fa8e5ed1410788.zip tcl-a0475c5cf6d86e396657f10115fa8e5ed1410788.tar.gz tcl-a0475c5cf6d86e396657f10115fa8e5ed1410788.tar.bz2 | |
Revert introduction of non-portable asm snippet in function TclWinCPUID, to restore compilability on Linux.
Diffstat (limited to 'unix/tclUnixCompat.c')
| -rw-r--r-- | unix/tclUnixCompat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unix/tclUnixCompat.c b/unix/tclUnixCompat.c index d3da962..1c42056 100644 --- a/unix/tclUnixCompat.c +++ b/unix/tclUnixCompat.c @@ -991,9 +991,12 @@ TclWinCPUID( int status = TCL_ERROR; #ifdef HAVE_CPUID + /* disabled in emergency -- fails on linux */ +# if 0 __asm__ __volatile__ ("cpuid":\ "=a" (regsPtr[0]), "=b" (regsPtr[1]), "=c" (regsPtr[2]), "=d" (regsPtr[3]) : "a" (index)); status = TCL_OK; +# endif #endif return status; } |
