From: Keir Fraser <keir@xen.org>
To: Lin-Bao Zhang <2004.zhang@gmail.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: xen-kernel and EDD
Date: Thu, 18 Aug 2011 12:05:48 +0100 [thread overview]
Message-ID: <CA72B09C.3085B%keir@xen.org> (raw)
In-Reply-To: <CANuKeP=uAUoRP2T4w6MOEz6AMAeT7jRMqhcNj5UqZq4-V3wm4A@mail.gmail.com>
On 18/08/2011 11:52, "Lin-Bao Zhang" <2004.zhang@gmail.com> 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
next prev parent reply other threads:[~2011-08-18 11:05 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAKdQVUb7s6_1RyMDyCkBZWHdAvDy1yPY4nQarqNbSspi4uHC2w@mail.gmail.com>
2011-08-18 5:08 ` xen-kernel and EDD Lin-Bao Zhang
2011-08-18 6:40 ` Keir Fraser
2011-08-18 10:43 ` Lin-Bao Zhang
2011-08-18 10:52 ` Lin-Bao Zhang
2011-08-18 11:05 ` Keir Fraser [this message]
2011-08-18 11:04 ` Keir Fraser
2011-08-18 15:55 ` Lin-Bao Zhang
2011-08-19 8:27 ` Lin-Bao Zhang
2011-08-19 8:49 ` Keir Fraser
2011-08-19 9:15 ` Lin-Bao Zhang
2011-08-19 9:23 ` Keir Fraser
2011-08-19 9:51 ` Lin-Bao Zhang
2011-08-22 3:45 ` Lin-Bao Zhang
2011-08-23 8:48 ` Paolo Bonzini
2011-08-23 10:24 ` Lin-Bao Zhang
2011-08-24 7:50 ` Lin-Bao Zhang
2011-08-24 8:03 ` Keir Fraser
2011-08-24 9:36 ` BobZhang
2011-08-24 9:49 ` Keir Fraser
2011-08-25 9:37 ` Lin-Bao Zhang
2011-08-25 9:50 ` Lin-Bao Zhang
2011-08-25 10:24 ` Keir Fraser
2011-08-25 14:33 ` Lin-Bao Zhang
2011-08-31 7:50 ` Lin-Bao Zhang
2011-08-31 7:56 ` Keir Fraser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA72B09C.3085B%keir@xen.org \
--to=keir@xen.org \
--cc=2004.zhang@gmail.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).