Commit d15a9a4d authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

x86: fix last commit

Keeping the selector that was loaded from the 32-bit GDT is okay, because
only code segment descriptors differ between 32- and 64-bit mode.  In
fact the same is true for %ss as well, so let's just remove the whole
segment loading from load_tss.

Thanks to Bandan Das for debugging.
Reported-by: Shih-Wei Li's avatarShih-Wei Li <>
Signed-off-by: default avatarPaolo Bonzini <>
parent 402d4596
......@@ -213,12 +213,6 @@ idt_descr:
lidtq idt_descr
mov $0x10, %eax
mov %ax, %ds
mov %ax, %es
mov %ax, %fs
mov %ax, %gs
mov %ax, %ss
mov (%rax), %eax
shr $24, %eax
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment