ia64/xen-unstable

changeset 77:024aa2a06c1e

bitkeeper revision 1.7.3.52 (3e1019294uiW6rByAS_Bs30dgMr6AA)

debug
author lynx@idefix.cl.cam.ac.uk
date Mon Dec 30 10:00:09 2002 +0000 (2002-12-30)
parents ddd3b8b09fea
children aac5f8f1210e
files xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c xenolinux-2.4.16-sparse/arch/xeno/mm/get_unmapped_area.c
line diff
     1.1 --- a/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c	Mon Dec 30 09:47:22 2002 +0000
     1.2 +++ b/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c	Mon Dec 30 10:00:09 2002 +0000
     1.3 @@ -184,15 +184,16 @@ unsigned long direct_mmap(unsigned long 
     1.4      /* add node on the list of directly mapped areas, make sure the
     1.5  	 * list remains sorted.
     1.6  	 */ 
     1.7 -    //dmmap = (direct_mmap_node_t *)kmalloc(sizeof(direct_mmap_node_t), GFP_KERNEL);
     1.8      dmmap = (direct_mmap_node_t *)kmalloc(KMALLOC_SIZE, GFP_KERNEL);
     1.9      dmmap->vm_start = addr;
    1.10      dmmap->vm_end = addr + size;
    1.11  	entry = find_direct(&current->mm->context.direct_list, addr);
    1.12  	if(entry != &current->mm->context.direct_list){
    1.13  		list_add_tail(&dmmap->list, entry);
    1.14 +		printk(KERN_ALERT "bd240 debug: added node %lx in the middle\n", node->vm_start);
    1.15  	} else {
    1.16      	list_add(&dmmap->list, &current->mm->context.direct_list);
    1.17 +		printk(KERN_ALERT "bd240 debug: added node %lx at tail\n", node->vm_start);
    1.18  	}
    1.19  
    1.20      /* and perform the mapping */
     2.1 --- a/xenolinux-2.4.16-sparse/arch/xeno/mm/get_unmapped_area.c	Mon Dec 30 09:47:22 2002 +0000
     2.2 +++ b/xenolinux-2.4.16-sparse/arch/xeno/mm/get_unmapped_area.c	Mon Dec 30 10:00:09 2002 +0000
     2.3 @@ -77,7 +77,10 @@ struct list_head *find_direct(struct lis
     2.4      for ( curr = direct_list->next; curr != direct_list; curr = curr->next )
     2.5      {
     2.6          node = list_entry(curr, direct_mmap_node_t, list);
     2.7 -        if( node->vm_start >= addr ) break;
     2.8 +        if( node->vm_start >= addr ){
     2.9 +			printk(KERN_ALERT "bd240 debug: find_direct: hit %lx\n", node->vm_start); 
    2.10 +			break;
    2.11 +		}
    2.12      }
    2.13  
    2.14      return curr;