|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] Re: [PATCH] stubdom: make the build more generic
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
|
|
|
|
|