Diff for libplaton/platon/cpu/x86cpuid.c between version 1.1 and 1.2
| version 1.1, 2002/04/19 01:14:04 |
version 1.2, 2002/05/06 17:39:59 |
| Line 19 char *get_x86cpuid(void) |
|
| Line 19 char *get_x86cpuid(void) |
|
| |
|
| x[0] = x[1] = x[2] = x[3] = 0; |
x[0] = x[1] = x[2] = x[3] = 0; |
| |
|
| asm volatile(".byte 15;.byte 162" |
__asm__ volatile(".byte 15;.byte 162" |
| : "=a"(x[0]),"=b"(x[1]),"=c"(x[3]),"=d"(x[2]) |
: "=a"(x[0]),"=b"(x[1]),"=c"(x[3]),"=d"(x[2]) |
| : "0"(0)); |
: "0"(0)); |
| |
|
| if (! x[0]) |
if (! x[0]) |
| return 0; |
return 0; |
| |
|
| asm volatile(".byte 15;.byte 162" |
__asm__ volatile(".byte 15;.byte 162" |
| : "=a"(y[0]),"=b"(y[1]),"=c"(y[2]),"=d"(y[3]) |
: "=a"(y[0]),"=b"(y[1]),"=c"(y[2]),"=d"(y[3]) |
| : "0"(1)); |
: "0"(1)); |
| |
|
Platon Group <platon@platon.org> http://platon.org/
|
|