《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 regels
200 B

10 jaren geleden
  1. #include <stdio.h>
  2. #include <ulib.h>
  3. /* try to load the kernel's TSS selector into the DS register */
  4. int
  5. main(void) {
  6. asm volatile("movw $0x28,%ax; movw %ax,%ds");
  7. panic("FAIL: T.T\n");
  8. }