diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-25 13:12:01 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-25 13:12:01 (GMT) |
commit | b2b37d97cf1e542ec98b18b3d314cf87e098cb59 (patch) | |
tree | 0dca0f062ef1061979b9a7a16011c031b9c38ae9 /unix/tclUnixCompat.c | |
parent | 4796adf5cb7dda39555411ea4941ab630f2eabec (diff) | |
parent | 9177f9a41b86a565c0a13030b18456608cc5a0d2 (diff) | |
download | tcl-b2b37d97cf1e542ec98b18b3d314cf87e098cb59.zip tcl-b2b37d97cf1e542ec98b18b3d314cf87e098cb59.tar.gz tcl-b2b37d97cf1e542ec98b18b3d314cf87e098cb59.tar.bz2 |
merge trunk
Diffstat (limited to 'unix/tclUnixCompat.c')
-rw-r--r-- | unix/tclUnixCompat.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/unix/tclUnixCompat.c b/unix/tclUnixCompat.c index e201018..c1e1075 100644 --- a/unix/tclUnixCompat.c +++ b/unix/tclUnixCompat.c @@ -995,12 +995,11 @@ TclWinCPUID( /* See: <http://en.wikipedia.org/wiki/CPUID> */ #if defined(HAVE_CPUID) - __asm__ __volatile__("mov %%ebx, %%edi \n\t" /* save %ebx */ + __asm__ __volatile__("mov %%ebx, %%esi \n\t" /* save %ebx */ "cpuid \n\t" - "mov %%ebx, %%esi \n\t" /* save what cpuid just put in %ebx */ - "mov %%edi, %%ebx \n\t" /* restore the old %ebx */ + "xchg %%esi, %%ebx \n\t" /* restore the old %ebx */ : "=a"(regsPtr[0]), "=S"(regsPtr[1]), "=c"(regsPtr[2]), "=d"(regsPtr[3]) - : "a"(index) : "edi"); + : "a"(index)); status = TCL_OK; #endif return status; |