mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
bitkeeper revision 1.7.3.27 (3e003f291O_YZUk9AXbU7gc5HK9Vyw)
test
This commit is contained in:
1 parent
7773e6ccbe
commit
bfccb8f286
2 files changed
+4
-4
No files matched your search
@@ -153,7 +153,7 @@ static ssize_t dom_mem_write(struct file * file, const char * buff,
|
||||
|
||||
copy_from_user(&addr, (unsigned long *)buff, sizeof(addr));
|
||||
|
||||
printk("bd240 debug: dom_mem_write addr %lx\n", addr);
|
||||
printk(KERN_ALERT "bd240 debug: dom_mem_write addr %lx\n", addr);
|
||||
|
||||
if(direct_disc_unmap(addr, mem_data->pfn, mem_data->tot_pages) == 0){
|
||||
return sizeof(addr);
|
||||
|
||||
@@ -182,7 +182,7 @@ unsigned long direct_mmap(unsigned long phys_addr, unsigned long size,
|
||||
dmmap->addr = addr;
|
||||
list_add(&dmmap->list, ¤t->mm->context.direct_list);
|
||||
|
||||
printk("bd240 debug: direct_mmap: enlisting addr %lx\n", dmmap->addr);
|
||||
printk(KERN_ALERT "bd240 debug: direct_mmap: enlisting addr %lx\n", dmmap->addr);
|
||||
|
||||
/* and perform the mapping */
|
||||
if(flag == MAP_DISCONT){
|
||||
@@ -332,13 +332,13 @@ int direct_disc_unmap(unsigned long from, unsigned long first_pg, int tot_pages)
|
||||
struct list_head * curr;
|
||||
struct list_head * direct_list = ¤t->mm->context.direct_list;
|
||||
|
||||
printk("bd240 debug: direct_disc_unmap: from %lx\n", from);
|
||||
printk(KERN_ALERT "bd240 debug: direct_disc_unmap: from %lx\n", from);
|
||||
|
||||
curr = direct_list->next;
|
||||
while(curr != direct_list){
|
||||
node = list_entry(curr, direct_mmap_node_t, list);
|
||||
|
||||
printk("bd240 debug: direct_disc_unmap: node %lx\n", node->addr);
|
||||
printk(KERN_ALERT "bd240 debug: direct_disc_unmap: node %lx\n", node->addr);
|
||||
|
||||
if(node->addr == from)
|
||||
break;
|
||||
|
||||