blob: 6926bf3e14e056959365a49d3f0ea40802172169 [file] [log] [blame] [edit]
// program to cause a general protection exception
int main(int argc, char** argv)
{
// Try to load the kernel's TSS selector into the DS register.
//asm volatile("movw $28,%ax; movw %ax,%ds");
// DP: 0x28 == 40
#ifdef __i386__
asm volatile("movw $40,%ax; movw %ax,%ds");
#endif
return 0;
}