if(maxv <= minv) {
printf("region_find_slot: minv 0x%lx and bytes 0x%lx\n",
minv, length);
- map_printmap(vmp);
return SLOT_FAIL;
}
}
if(!foundflag) {
printf("VM: region_find_slot: no 0x%lx bytes found for %d between 0x%lx and 0x%lx\n",
length, vmp->vm_endpoint, minv, maxv);
- map_printmap(vmp);
return SLOT_FAIL;
}
return OK;
}
- map_printmap(vmp);
-
return ENOMEM;
}
assert(!(size % VM_PAGE_SIZE));
startv = region_find_slot(dvmp, dst_addr, VM_DATATOP, size);
if (startv == SLOT_FAIL) {
- printf("map_remap: search 0x%lx...\n", dst_addr);
- map_printmap(dvmp);
return ENOMEM;
}
/* when the user specifies the address, we cannot change it */