ia64/xen-unstable

changeset 1700:5a555cd41a9e

bitkeeper revision 1.1041.14.3 (40eb392aJ1hgtGMI_th3WSdk6peMnw)

Move IDLE0_TASK initializer to machdep file
author djm@kirby.fc.hp.com
date Tue Jul 06 23:43:38 2004 +0000 (2004-07-06)
parents 4c46c77bb628
children 0641c37d44f8
files xen/arch/x86/idle0_task.c xen/include/xen/sched.h
line diff
     1.1 --- a/xen/arch/x86/idle0_task.c	Tue Jul 06 23:29:57 2004 +0000
     1.2 +++ b/xen/arch/x86/idle0_task.c	Tue Jul 06 23:43:38 2004 +0000
     1.3 @@ -2,6 +2,17 @@
     1.4  #include <xen/sched.h>
     1.5  #include <asm/desc.h>
     1.6  
     1.7 +#define IDLE0_TASK(_t)           \
     1.8 +{                                \
     1.9 +    processor:   0,              \
    1.10 +    domain:      IDLE_DOMAIN_ID, \
    1.11 +    mm:          IDLE0_MM,       \
    1.12 +    addr_limit:  KERNEL_DS,      \
    1.13 +    thread:      INIT_THREAD,    \
    1.14 +    flags:       1<<DF_IDLETASK, \
    1.15 +    refcnt:      ATOMIC_INIT(1)  \
    1.16 +}
    1.17 +
    1.18  struct domain idle0_task = IDLE0_TASK(idle0_task);
    1.19  
    1.20  /*
     2.1 --- a/xen/include/xen/sched.h	Tue Jul 06 23:29:57 2004 +0000
     2.2 +++ b/xen/include/xen/sched.h	Tue Jul 06 23:43:38 2004 +0000
     2.3 @@ -152,17 +152,6 @@ struct domain
     2.4  
     2.5  #include <asm/uaccess.h> /* for KERNEL_DS */
     2.6  
     2.7 -#define IDLE0_TASK(_t)           \
     2.8 -{                                \
     2.9 -    processor:   0,              \
    2.10 -    domain:      IDLE_DOMAIN_ID, \
    2.11 -    mm:          IDLE0_MM,       \
    2.12 -    addr_limit:  KERNEL_DS,      \
    2.13 -    thread:      INIT_THREAD,    \
    2.14 -    flags:       1<<DF_IDLETASK, \
    2.15 -    refcnt:      ATOMIC_INIT(1)  \
    2.16 -}
    2.17 -
    2.18  extern struct domain idle0_task;
    2.19  
    2.20  extern struct domain *idle_task[NR_CPUS];