mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
bitkeeper revision 1.7.3.58 (3e14aa78jPxKgtkJQt93U8n0Lfr_Og)
debug
This commit is contained in:
1 parent
d4496bbfbc
commit
be31a5d615
2 files changed
+2
-4
No files matched your search
@@ -174,8 +174,6 @@ static ssize_t dom_mem_read(struct file * file, char * buff, size_t size, loff_t
|
||||
addr = direct_mmap(mem_data->pfn << PAGE_SHIFT, mem_data->tot_pages << PAGE_SHIFT, prot, 0, 0);
|
||||
printk(KERN_ALERT "bd240 debug: dom_mem_read: %lx, %lx @ %lx\n", mem_data->pfn << PAGE_SHIFT, mem_data->tot_pages << PAGE_SHIFT, addr);
|
||||
|
||||
//addr = direct_mmap(mem_data->pfn, mem_data->tot_pages << PAGE_SHIFT, prot, 1,
|
||||
// mem_data->tot_pages);
|
||||
copy_to_user((unsigned long *)buff, &addr, sizeof(addr));
|
||||
|
||||
printk(KERN_ALERT "bd240 debug: exiting dom_mem_read\n");
|
||||
|
||||
@@ -184,10 +184,10 @@ unsigned long direct_mmap(unsigned long phys_addr, unsigned long size,
|
||||
entry = find_direct(¤t->mm->context.direct_list, addr);
|
||||
if(entry != ¤t->mm->context.direct_list){
|
||||
list_add_tail(&dmmap->list, entry);
|
||||
printk(KERN_ALERT "bd240 debug: added node %lx in the middle\n", dmmap->vm_start);
|
||||
printk(KERN_ALERT "bd240 debug: added node %lx, size %lx in the middle\n", dmmap->vm_start, size);
|
||||
} else {
|
||||
list_add_tail(&dmmap->list, ¤t->mm->context.direct_list);
|
||||
printk(KERN_ALERT "bd240 debug: added node %lx at tail\n", dmmap->vm_start);
|
||||
printk(KERN_ALERT "bd240 debug: added node %lx, size %lx at tail\n", dmmap->vm_start, size);
|
||||
}
|
||||
|
||||
/* and perform the mapping */
|
||||
|
||||