WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [Q] GRUB -> __start_xen?

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-devel] [Q] GRUB -> __start_xen?
From: Chris Wright <chrisw@xxxxxxxx>
Date: Fri, 24 Jun 2005 11:53:55 -0700
Cc: bharadwaj.yadavalli@xxxxxx
Delivery-date: Fri, 24 Jun 2005 18:52:55 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20050624182542.GC339769@xxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20050624182542.GC339769@xxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
* Bharadwaj Yadavalli (bharadwaj.yadavalli@xxxxxx) 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

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

<Prev in Thread] Current Thread [Next in Thread>