direct-io.hg

changeset 15269:c56ebab69b84

x86: Initialise %ds when booting APs, otherwise data accesses go to
the wrong place.
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Tue Jun 12 14:06:37 2007 +0100 (2007-06-12)
parents 699f0c429620
children 0f9d683a83ed 96617c4f19aa
files xen/arch/x86/boot/trampoline.S
line diff
     1.1 --- a/xen/arch/x86/boot/trampoline.S	Tue Jun 12 14:03:09 2007 +0100
     1.2 +++ b/xen/arch/x86/boot/trampoline.S	Tue Jun 12 14:06:37 2007 +0100
     1.3 @@ -6,11 +6,13 @@
     1.4  
     1.5          .globl trampoline_realmode_entry
     1.6  trampoline_realmode_entry:
     1.7 +        mov     %cs,%ax
     1.8 +        mov     %ax,%ds
     1.9          movb    $0xA5,bootsym(trampoline_cpu_started)
    1.10          cld
    1.11          cli
    1.12 -        lidt    %cs:bootsym(idt_48)
    1.13 -        lgdt    %cs:bootsym(gdt_48)
    1.14 +        lidt    bootsym(idt_48)
    1.15 +        lgdt    bootsym(gdt_48)
    1.16          xor     %ax, %ax
    1.17          inc     %ax
    1.18          lmsw    %ax                       # CR0.PE = 1 (enter protected mode)