| // 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; | |
| } | |