diff options
author | Avi Kivity <avi@redhat.com> | 2009-09-16 12:26:02 +0300 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2009-09-16 16:00:51 -0300 |
commit | f42b5ef6cfb8f43aea438f603e5ef8f54b16db24 (patch) | |
tree | 9a33feeb6037987b5820d4ff036d8ac0b7284c11 /kvm | |
parent | test: Use xapic_write() to enable xapic() (diff) | |
download | qemu-kvm-f42b5ef6cfb8f43aea438f603e5ef8f54b16db24.tar.gz qemu-kvm-f42b5ef6cfb8f43aea438f603e5ef8f54b16db24.tar.bz2 qemu-kvm-f42b5ef6cfb8f43aea438f603e5ef8f54b16db24.zip |
test: initialize idt on all processors
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'kvm')
-rw-r--r-- | kvm/user/test/x86/cstart64.S | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kvm/user/test/x86/cstart64.S b/kvm/user/test/x86/cstart64.S index 278465b8f..a55ad5043 100644 --- a/kvm/user/test/x86/cstart64.S +++ b/kvm/user/test/x86/cstart64.S @@ -1,6 +1,7 @@ #include "apic-defs.h" +.globl boot_idt boot_idt = 0 ipi_vector = 0x20 @@ -160,7 +161,12 @@ start64: mov %eax, %edi call exit +idt_descr: + .word 16 * 256 - 1 + .quad boot_idt + load_tss: + lidtq idt_descr mov $0, %eax mov %ax, %ss mov $(APIC_DEFAULT_PHYS_BASE + APIC_ID), %eax |