os_kernel_lab/related_info/lab5/lab5-spoc-discuss/user/badsegment.c

12 lines
200 B
C
Raw Normal View History

2015-04-20 12:44:41 +08:00
#include <stdio.h>
#include <ulib.h>
/* try to load the kernel's TSS selector into the DS register */
int
main(void) {
asm volatile("movw $0x28,%ax; movw %ax,%ds");
panic("FAIL: T.T\n");
}