Kernel: replace vm_contiguous with vm_lookup_range

This commit is contained in:
David van Moolenbroek
2012-03-21 23:46:51 +01:00
parent 5737b690dc
commit 08af3f672b
3 changed files with 40 additions and 43 deletions

View File

@@ -111,7 +111,7 @@ PUBLIC int do_umap_remote(struct proc * caller, message * m_ptr)
phys_addr = lin_addr;
}
if(vm_running && !vm_contiguous(targetpr, lin_addr, count)) {
if(vm_running && vm_lookup_range(targetpr, lin_addr, NULL, count) != count) {
printf("SYSTEM:do_umap: not contiguous\n");
return EFAULT;
}