qemu version: 0.8.9-windows
and the code in my os that causes it:
Code: Select all
asm("pushl %eax\n\t"\
"lgdt _GDTP(,1)\n\t"\
"movw $0x10, %ax\n\t"\
"movw %ax, %ds\n\t"\
"movw %ax, %es\n\t"\
"movw %ax, %fs\n\t"\
"movw %ax, %gs\n\t"\
"movw %ax, %ss\n\t"\
"ljmp $0x8,$nextin\n\t"
"nextin:\n\t"\
"popl %eax\n\t"\
I just tried loading ds with a bad valuse. It had the smae resault. Is this right?