blob: b84b0b159cffc5fd576bf52ff9ba9b7f3ccfd690 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* this is a shrunken cpuid. */
static unsigned int cpuid(unsigned int op)
{
unsigned int ret;
unsigned dummy2,dummy3,dummy4;
asm volatile (
"cpuid"
: "=a" (ret), "=b" (dummy2), "=c" (dummy3), "=d" (dummy4)
: "a" (op)
);
return ret;
}
|