diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-25 09:12:32 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-25 09:12:32 (GMT) |
commit | f09de888df51736f6e35a190ee1eef87b39048cf (patch) | |
tree | 93d71e0e3d9c75d1e0a055d9fb0c61a59c950344 /unix/tclUnixCompat.c | |
parent | 51db664c7d3fa5bc0a1c216ac3ee89c1eeba6f09 (diff) | |
parent | ee29bbd769ed711e5e7faa7c838d23a8092cc3d1 (diff) | |
download | tcl-f09de888df51736f6e35a190ee1eef87b39048cf.zip tcl-f09de888df51736f6e35a190ee1eef87b39048cf.tar.gz tcl-f09de888df51736f6e35a190ee1eef87b39048cf.tar.bz2 |
Merge trunk
Rename TclInitStubs back to Tcl_InitStubs, for easier compatibility with Tcl 8.
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 6de6e75..f8f0080 100644 --- a/unix/tclUnixCompat.c +++ b/unix/tclUnixCompat.c @@ -993,12 +993,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","ebx"); + : "a"(index)); status = TCL_OK; #endif return status; |