* more re-work
[mascara-docs.git] / i386 / junos / ucla / src / lab5 / user / badsegment.c
blob7eba68e2f3cc1f2dd5c96a92155e8d0b18330103
1 // program to cause a general protection exception
3 #include <inc/lib.h>
5 asmlinkage void
6 umain(int argc, char **argv)
8 // Try to load the kernel's TSS selector into the DS register.
9 asm volatile("movw $0x28,%ax; movw %ax,%ds");