PKGBUILDs/extra/archboot/vmware-detect.c
2009-10-09 21:23:22 -05:00

13 lines
162 B
C

#include <stdio.h>
int main() {
unsigned char idtr[6];
asm("sidt %0" : "=m" (idtr));
if(0xff==idtr[5])
{
return 0;
}
else
{
return 1;
}
}