diff options
author | Avi Kivity <avi@redhat.com> | 2009-09-16 12:25:41 +0300 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2009-09-16 16:00:42 -0300 |
commit | 9c7e1f76c0cd6cd55133a07708b967fdabe25e20 (patch) | |
tree | e0a4ee768b6b493a9d16eb3911f4e80405b9490c /kvm | |
parent | test: Map 4GB of memory (diff) | |
download | qemu-kvm-9c7e1f76c0cd6cd55133a07708b967fdabe25e20.tar.gz qemu-kvm-9c7e1f76c0cd6cd55133a07708b967fdabe25e20.tar.bz2 qemu-kvm-9c7e1f76c0cd6cd55133a07708b967fdabe25e20.zip |
test: use real APIC instead of fake APIC
smp temporarily disabled
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 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/kvm/user/test/x86/cstart64.S b/kvm/user/test/x86/cstart64.S index 3f193a30e..912bcf857 100644 --- a/kvm/user/test/x86/cstart64.S +++ b/kvm/user/test/x86/cstart64.S @@ -1,5 +1,5 @@ -#include "fake-apic.h" +#include "apic.h" boot_idt = 0 @@ -131,8 +131,9 @@ start64: load_tss: mov $0, %eax mov %ax, %ss - mov $(APIC_BASE + APIC_REG_ID), %dx - in %dx, %eax + mov $(APIC_DEFAULT_PHYS_BASE + APIC_ID), %eax + mov (%rax), %eax + shr $24, %eax mov %eax, %ebx shl $4, %ebx mov $((tss_end - tss) / max_cpus), %edx @@ -150,6 +151,7 @@ load_tss: ret smp_init: +#if 0 lea boot_idt + ipi_vector * 8, %rdi mov $smp_init_ipi, %eax mov %ax, (%rdi) @@ -178,4 +180,5 @@ smp_loop: inc %esi jmp smp_loop smp_init_done: +#endif ret |