ia64/xen-unstable

changeset 49:dbf7fc972188

bitkeeper revision 1.7.3.26 (3e003bc41S15i4Ag0BUKBFRkbtQV-g)

testing
author lynx@idefix.cl.cam.ac.uk
date Wed Dec 18 09:11:32 2002 +0000 (2002-12-18)
parents ae8ce588d9bd
children a260d2e9790e
files xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_core.c 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_core.c	Tue Dec 17 11:59:33 2002 +0000
     1.2 +++ b/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_core.c	Wed Dec 18 09:11:32 2002 +0000
     1.3 @@ -153,6 +153,8 @@ static ssize_t dom_mem_write(struct file
     1.4      
     1.5      copy_from_user(&addr, (unsigned long *)buff, sizeof(addr));
     1.6      
     1.7 +	printk("bd240 debug: dom_mem_write addr %lx\n", addr);
     1.8 +
     1.9      if(direct_disc_unmap(addr, mem_data->pfn, mem_data->tot_pages) == 0){
    1.10          return sizeof(addr);
    1.11      } else {
     2.1 --- a/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c	Tue Dec 17 11:59:33 2002 +0000
     2.2 +++ b/xenolinux-2.4.16-sparse/arch/xeno/drivers/dom0/dom0_memory.c	Wed Dec 18 09:11:32 2002 +0000
     2.3 @@ -182,6 +182,8 @@ unsigned long direct_mmap(unsigned long 
     2.4      dmmap->addr = addr;
     2.5      list_add(&dmmap->list, &current->mm->context.direct_list);
     2.6  
     2.7 +	printk("bd240 debug: direct_mmap: enlisting addr %lx\n", dmmap->addr);
     2.8 +
     2.9      /* and perform the mapping */
    2.10      if(flag == MAP_DISCONT){
    2.11          ret = direct_remap_disc_page_range(addr, phys_addr, tot_pages, prot);
    2.12 @@ -330,9 +332,14 @@ int direct_disc_unmap(unsigned long from
    2.13      struct list_head * curr;
    2.14      struct list_head * direct_list = &current->mm->context.direct_list;    
    2.15  
    2.16 +	printk("bd240 debug: direct_disc_unmap: from %lx\n", from);
    2.17 +
    2.18      curr = direct_list->next;
    2.19      while(curr != direct_list){
    2.20          node = list_entry(curr, direct_mmap_node_t, list);
    2.21 +
    2.22 +		printk("bd240 debug: direct_disc_unmap: node %lx\n", node->addr);
    2.23 +
    2.24          if(node->addr == from)
    2.25              break;
    2.26          curr = curr->next;