Tcl Source Code

Check-in [47af426282]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:revert [273bbe926d]: it doesn't work on i386
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | core-8-4-branch
Files: files | file ages | folders
SHA1: 47af4262826bb5d555f1b16bbc369d01a31e188a
User & Date: jan.nijtmans 2013-01-24 21:28:43
Context
2013-01-24
22:00
new version of cpuid, which doesn't use the edi register any more. Hopefully that works better on so... check-in: 2153733cd7 user: jan.nijtmans tags: core-8-4-branch
21:29
revert [f3509c3d35]: it doesn't work on i386 check-in: 5aa72128a9 user: jan.nijtmans tags: core-8-5-branch
21:28
revert [273bbe926d]: it doesn't work on i386 check-in: 47af426282 user: jan.nijtmans tags: core-8-4-branch
18:47
Silence some compiler warnings. check-in: f169839228 user: dgp tags: core-8-4-branch
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to unix/tclUnixCompat.c.

694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
    /* See: <http://en.wikipedia.org/wiki/CPUID> */
#if defined(HAVE_CPUID)
    __asm__ __volatile__("mov %%ebx, %%edi     \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 */
                 : "=a"(regsPtr[0]), "=S"(regsPtr[1]), "=c"(regsPtr[2]), "=d"(regsPtr[3])
                 : "a"(index) : "edi","ebx");
    status = TCL_OK;
#endif
    return status;
}

/*
 * Local Variables:







|







694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
    /* See: <http://en.wikipedia.org/wiki/CPUID> */
#if defined(HAVE_CPUID)
    __asm__ __volatile__("mov %%ebx, %%edi     \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 */
                 : "=a"(regsPtr[0]), "=S"(regsPtr[1]), "=c"(regsPtr[2]), "=d"(regsPtr[3])
                 : "a"(index) : "edi");
    status = TCL_OK;
#endif
    return status;
}

/*
 * Local Variables: