688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
|
int
TclWinCPUID(
unsigned int index, /* Which CPUID value to retrieve. */
unsigned int *regsPtr) /* Registers after the CPUID. */
{
int status = TCL_ERROR;
/* There is no reason this couldn't be implemented on UNIX as well */
return status;
}
/*
* Local Variables:
* mode: c
* c-basic-offset: 4
* fill-column: 78
|
|
>
>
>
|
|
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
|
int
TclWinCPUID(
unsigned int index, /* Which CPUID value to retrieve. */
unsigned int *regsPtr) /* Registers after the CPUID. */
{
int status = TCL_ERROR;
#ifdef HAVE_CPUID
__asm__ __volatile__ ("cpuid":\
"=a" (regsPtr[0]), "=b" (regsPtr[1]), "=c" (regsPtr[2]), "=d" (regsPtr[3]) : "a" (index));
status = TCL_OK;
#endif return status;
}
/*
* Local Variables:
* mode: c
* c-basic-offset: 4
* fill-column: 78
|