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 <shihwei@cs.columbia.edu>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 402d4596
......@@ -213,12 +213,6 @@ idt_descr:
load_tss:
lidtq idt_descr
mov $0x10, %eax
mov %ax, %ds
mov %ax, %es
mov %ax, %fs
mov %ax, %gs
mov %ax, %ss
mov $(APIC_DEFAULT_PHYS_BASE + APIC_ID), %eax
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