[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] xen-kernel and EDD


  • To: Lin-Bao Zhang <2004.zhang@xxxxxxxxx>
  • From: Keir Fraser <keir@xxxxxxx>
  • Date: Thu, 18 Aug 2011 12:05:48 +0100
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 18 Aug 2011 04:10:14 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acxdlsiq9AOp1XqJUUisHiDYqq2mgw==
  • Thread-topic: [Xen-devel] xen-kernel and EDD

On 18/08/2011 11:52, "Lin-Bao Zhang" <2004.zhang@xxxxxxxxx> wrote:

> in xen/arch/x86/boot/head.S:
> there is a code ,it will copy bootstrap trampoline to low memory below 1MB.
> 
> I am not very familar with assembler code, who can explain its target :
> I guess maybe 0x98000 has overlapped my EBDA area(95400 ~a0000) .

Well, yes, obviously it does. :-)

> -----------------------
>  /* Copy bootstrap trampoline to low memory, below 1MB. */
>         mov     $sym_phys(trampoline_start),%esi
>         mov     $bootsym_phys(trampoline_start),%edi
>         mov     $trampoline_end - trampoline_start,%ecx
>         rep     movsb
> 
>         mov     $0x98000,%esp
>         call    cmdline_parse_early
> 
>         /* Jump into the relocated trampoline. */
>         jmp     $BOOT_CS32,$bootsym_phys(trampoline_boot_cpu_entry)
> 
> #include "cmdline.S"
> 
>         .globl trampoline_start, trampoline_end
> trampoline_start:
> #include "trampoline.S"
> trampoline_end:
> 
>         .text
> __high_start:
> #ifdef __x86_64__
> #include "x86_64.S"
> #else
> #include "x86_32.S"
> #endif



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.