ia64/xen-unstable

changeset 341:05ad6558003c

bitkeeper revision 1.156 (3e7dd819fSxxToqPHGYcqfQraKgswQ)

dom0_ops.c:
Fix domain creation for >= 32 domains.
author kaf24@scramble.cl.cam.ac.uk
date Sun Mar 23 15:51:53 2003 +0000 (2003-03-23)
parents 082bd5f74c47
children 3426ef69b9dc
files xen/common/dom0_ops.c
line diff
     1.1 --- a/xen/common/dom0_ops.c	Sat Mar 22 18:47:47 2003 +0000
     1.2 +++ b/xen/common/dom0_ops.c	Sun Mar 23 15:51:53 2003 +0000
     1.3 @@ -18,6 +18,10 @@ extern unsigned int alloc_new_dom_mem(st
     1.4  
     1.5  static unsigned int get_domnr(void)
     1.6  {
     1.7 +#if 1
     1.8 +    static unsigned int domnr = 0;
     1.9 +    return ++domnr;
    1.10 +#else
    1.11      struct task_struct *p = &idle0_task;
    1.12      unsigned long dom_mask = 0;
    1.13      read_lock_irq(&tasklist_lock);
    1.14 @@ -28,6 +32,7 @@ static unsigned int get_domnr(void)
    1.15      while ( (p = p->next_task) != &idle0_task );   
    1.16      read_unlock_irq(&tasklist_lock);
    1.17      return (dom_mask == ~0UL) ? 0 : ffz(dom_mask);
    1.18 +#endif
    1.19  }
    1.20  
    1.21  static void build_page_list(struct task_struct *p)