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

[Xen-devel] Re: [PATCH] stubdom: make the build more generic

To: Xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] Re: [PATCH] stubdom: make the build more generic
From: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>
Date: Tue, 27 May 2008 17:24:14 +0100
Delivery-date: Tue, 27 May 2008 09:24:38 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080527152243.GU4335@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Mail-followup-to: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>, Xen-devel@xxxxxxxxxxxxxxxxxxx
References: <20080527152243.GU4335@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.12-2006-07-14
stubdom: Save main_thread value by moving it out from app_bss which gets
cleared.

Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxxx>

---
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 <stdio.h>
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)
 {

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

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