summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixCompat.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-03-11 15:16:24 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-03-11 15:16:24 (GMT)
commit5213918644d7bf390f64791f03e9f37d032e7f9b (patch)
treec8ee86aa6d46aa714566fde2ae7134f7492c19fe /unix/tclUnixCompat.c
parent0b39585b19e94e663d35f0618c748abfb37de5cd (diff)
parentf4a4c6610033116db3172a719caf8cc7d32bac4f (diff)
downloadtcl-5213918644d7bf390f64791f03e9f37d032e7f9b.zip
tcl-5213918644d7bf390f64791f03e9f37d032e7f9b.tar.gz
tcl-5213918644d7bf390f64791f03e9f37d032e7f9b.tar.bz2
Merge 8.7
Diffstat (limited to 'unix/tclUnixCompat.c')
-rw-r--r--unix/tclUnixCompat.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/unix/tclUnixCompat.c b/unix/tclUnixCompat.c
index 603285d..4365fa8 100644
--- a/unix/tclUnixCompat.c
+++ b/unix/tclUnixCompat.c
@@ -992,20 +992,19 @@ TclWinCPUID(
int status = TCL_ERROR;
/* See: <http://en.wikipedia.org/wiki/CPUID> */
-#if defined(HAVE_CPUID)
#if defined(__x86_64__) || defined(_M_AMD64) || defined (_M_X64)
__asm__ __volatile__("movq %%rbx, %%rsi \n\t" /* save %rbx */
"cpuid \n\t"
"xchgq %%rsi, %%rbx \n\t" /* restore the old %rbx */
: "=a"(regsPtr[0]), "=S"(regsPtr[1]), "=c"(regsPtr[2]), "=d"(regsPtr[3])
: "a"(index));
-#else
+ status = TCL_OK;
+#elif defined(__i386__) || defined(_M_IX86)
__asm__ __volatile__("mov %%ebx, %%esi \n\t" /* save %ebx */
"cpuid \n\t"
"xchg %%esi, %%ebx \n\t" /* restore the old %ebx */
: "=a"(regsPtr[0]), "=S"(regsPtr[1]), "=c"(regsPtr[2]), "=d"(regsPtr[3])
: "a"(index));
-#endif
status = TCL_OK;
#else
(void)index;