ia64/xen-unstable

changeset 17745:38ec0d674842

stubdom: Save main_thread value by moving it out from app_bss which
gets cleared.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed May 28 09:31:04 2008 +0100 (2008-05-28)
parents 460f72ca97b6
children 3613160e4fd1
files extras/mini-os/main.c extras/mini-os/sched.c
line diff
     1.1 --- a/extras/mini-os/main.c	Wed May 28 09:30:48 2008 +0100
     1.2 +++ b/extras/mini-os/main.c	Wed May 28 09:31:04 2008 +0100
     1.3 @@ -21,8 +21,6 @@ extern void __libc_fini_array(void);
     1.4  extern unsigned long __CTOR_LIST__[];
     1.5  extern unsigned long __DTOR_LIST__[];
     1.6  
     1.7 -struct thread *main_thread;
     1.8 -
     1.9  #if 0
    1.10  #include <stdio.h>
    1.11  int main(int argc, char *argv[], char *envp[])
     2.1 --- a/extras/mini-os/sched.c	Wed May 28 09:30:48 2008 +0100
     2.2 +++ b/extras/mini-os/sched.c	Wed May 28 09:31:04 2008 +0100
     2.3 @@ -58,6 +58,8 @@ struct thread *idle_thread = NULL;
     2.4  LIST_HEAD(exited_threads);
     2.5  static int threads_started;
     2.6  
     2.7 +struct thread *main_thread;
     2.8 +
     2.9  void inline print_runqueue(void)
    2.10  {
    2.11      struct list_head *it;