From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Thibault Subject: Re: [PATCH] stubdom: make the build more generic Date: Tue, 27 May 2008 17:24:14 +0100 Message-ID: <20080527162414.GW4335@implementation.uk.xensource.com> References: <20080527152243.GU4335@implementation.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20080527152243.GU4335@implementation.uk.xensource.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 List-Id: xen-devel@lists.xenproject.org stubdom: Save main_thread value by moving it out from app_bss which gets cleared. Signed-off-by: Samuel Thibault --- Fix to be applied on top of the previous patch. diff -r b2ba3736c9aa extras/mini-os/main.c --- a/extras/mini-os/main.c Tue May 27 17:02:12 2008 +0100 +++ b/extras/mini-os/main.c Tue May 27 17:24:28 2008 +0100 @@ -20,8 +20,6 @@ extern void __libc_fini_array(void); extern unsigned long __CTOR_LIST__[]; extern unsigned long __DTOR_LIST__[]; - -struct thread *main_thread; #if 0 #include diff -r b2ba3736c9aa extras/mini-os/sched.c --- a/extras/mini-os/sched.c Tue May 27 17:02:12 2008 +0100 +++ b/extras/mini-os/sched.c Tue May 27 17:24:28 2008 +0100 @@ -57,6 +57,8 @@ struct thread *idle_thread = NULL; LIST_HEAD(exited_threads); static int threads_started; + +struct thread *main_thread; void inline print_runqueue(void) {