diff --git a/xenolinux-2.4.16-sparse/arch/xeno/mm/get_unmapped_area.c b/xenolinux-2.4.16-sparse/arch/xeno/mm/get_unmapped_area.c index e9e84b52b5..2415ef39f8 100644 --- a/xenolinux-2.4.16-sparse/arch/xeno/mm/get_unmapped_area.c +++ b/xenolinux-2.4.16-sparse/arch/xeno/mm/get_unmapped_area.c @@ -63,8 +63,13 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi * is not available. this is the only difference to generic * arch_get_unmapped_area. */ - if ((!vma || addr + len <= vma->vm_start) && !direct_mapped(addr)) + printk(KERN_ALERT "bd240 debug: gua: vm addr found %lx\n", addr); + if ((!vma || addr + len <= vma->vm_start) && !direct_mapped(addr)){ + printk(KERN_ALERT "bd240 debug: gua: first condition %d\n", !vma || addr + len =< vma->vm-start); + printk(KERN_ALERT "bd240 debug: gua: second condition %d\n", direct_mapped(addr)); + return addr; + } addr = vma->vm_end; }