From: Chris Wright Subject: Re: [Q] GRUB -> __start_xen? Date: Fri, 24 Jun 2005 11:53:55 -0700 Message-ID: <20050624185355.GJ9157@shell0.pdx.osdl.net> References: <20050624182542.GC339769@marburg.zko.dec.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20050624182542.GC339769@marburg.zko.dec.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: bharadwaj.yadavalli@hp.com List-Id: xen-devel@lists.xenproject.org * Bharadwaj Yadavalli (bharadwaj.yadavalli@hp.com) wrote: > On x86 (and may be other architectures), it appears to me > that xen's entry point is > > void __init __start_xen(multiboot_info_t *mbi) I believe it is actually 'start' in arch/x86/boot/x86_32.S, for example. At least, that's the elf entry point which does low-level setup before calling __start_xen. In there you should find the layout of the multiboot header that grub requires. > that lives in xeno-unstable.bk/xen/arch/x86/setup.c. > > 1. Who builds the structure mbi and calls __start_xen? The boot loader, and then stashes it in specified register (ebx in this case). > 2. How is __satrt_xen registered as the entry point? start is the elf entry point. > Is there a place that I can read to understand the transfer > of control from multiboot GRUB to xen's entry point? For more info on multiboot, read: http://www.gnu.org/software/grub/manual/multiboot/ thanks, -chris