mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
13 lines
162 B
C
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;
|
|
}
|
|
}
|