Use vm_map_remove(), not vm_map_delete().

This commit is contained in:
mycroft 1994-05-03 01:24:11 +00:00
parent aec02f9cc9
commit 3acdcf5311

View File

@ -138,11 +138,8 @@ cpu_exit(p)
#endif
vm = p->p_vmspace;
if (vm->vm_refcnt == 1) {
vm_map_lock(&vm->vm_map);
vm_map_delete(&vm->vm_map, VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS);
vm_map_unlock(&vm->vm_map);
}
if (vm->vm_refcnt == 1)
vm_map_remove(&vm->vm_map, VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS);
swtch_exit(p);
}