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: Bharadwaj Yadavalli <bharadwaj.yadavalli@xxxxxx>
Subject: Re: [Xen-devel] [Q] GRUB -> __start_xen?
From: "Carl Holtje ;021;vcsg6;" <cwh0803@xxxxxxxxxx>
Date: Fri, 24 Jun 2005 14:54:18 -0400 (EDT)
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 24 Jun 2005 18:53:17 +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
On Fri, 24 Jun 2005, Bharadwaj Yadavalli wrote:

> I am trying to understand the internals of Xen.
>
> 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)
>
> that lives in xeno-unstable.bk/xen/arch/x86/setup.c.
>
> 1. Who builds the structure mbi and calls __start_xen?

See xen/arch/x86/boot/x86_32.S .. __start_xen is called from there, with
the multiboot info..

It is at this point that assembler becomes C code, and everything is
easier to debug. :)

> 2. How is __satrt_xen registered as the entry point?

__start_xen is not the "real" entry point; instead it's the ENTRY(start)
line in xen/arch/x86/boot/x86_32.S

Carl

- --

"There are 10 types of people in the world: Those who understand binary
and those that don't."

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

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