ia64/xen-unstable

changeset 81:f60fd9a628d9

bitkeeper revision 1.7.3.56 (3e102055egsZ-GzoHVKeMzZIzTKV7A)

debug
author lynx@idefix.cl.cam.ac.uk
date Mon Dec 30 10:30:45 2002 +0000 (2002-12-30)
parents 2e061c5495da
children 29334f27f404
files xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c
line diff
     1.1 --- a/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c	Mon Dec 30 10:24:23 2002 +0000
     1.2 +++ b/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c	Mon Dec 30 10:30:45 2002 +0000
     1.3 @@ -22,12 +22,6 @@
     1.4  
     1.5  extern struct list_head * find_direct(struct list_head *, unsigned long);
     1.6  
     1.7 -/* now, this is grimm, kmalloc seems to have problems allocating small mem
     1.8 - * blocks, so i have decided to use fixed (a bit) larger blocks... this needs
     1.9 - * to be traced down but no time now.
    1.10 - */
    1.11 -#define KMALLOC_SIZE	128
    1.12 -
    1.13  /* bd240: functions below perform direct mapping to the real physical pages needed for
    1.14   * mapping various hypervisor specific structures needed in dom0 userspace by various
    1.15   * management applications such as domain builder etc.
    1.16 @@ -189,10 +183,10 @@ unsigned long direct_mmap(unsigned long 
    1.17      dmmap->vm_end = addr + size;
    1.18  	entry = find_direct(&current->mm->context.direct_list, addr);
    1.19  	if(entry != &current->mm->context.direct_list){
    1.20 -		list_add(&dmmap->list, entry);
    1.21 +		list_add_tail(&dmmap->list, entry);
    1.22  		printk(KERN_ALERT "bd240 debug: added node %lx in the middle\n", dmmap->vm_start);
    1.23  	} else {
    1.24 -    	list_add(&dmmap->list, &current->mm->context.direct_list);
    1.25 +    	list_add_tail(&dmmap->list, &current->mm->context.direct_list);
    1.26  		printk(KERN_ALERT "bd240 debug: added node %lx at tail\n", dmmap->vm_start);
    1.27  	}
    1.28