From d8afae924f4db99650aa0df115c6ae66ed02b950 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Wed, 19 Dec 2001 08:58:08 +0000 Subject: UBC was a disaster. It worked very good when it worked, but on some machines or some configurations or in some phase of the moon (we actually don't know when or why) files disappeared. Since we've not been able to track down the problem in two weeks intense debugging and we need -current to be stable, back out everything to a state it had before UBC. We apologise for the inconvenience. --- sys/uvm/uvm_user.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'sys/uvm/uvm_user.c') diff --git a/sys/uvm/uvm_user.c b/sys/uvm/uvm_user.c index 502d2aca440..01677547711 100644 --- a/sys/uvm/uvm_user.c +++ b/sys/uvm/uvm_user.c @@ -1,5 +1,5 @@ -/* $OpenBSD: uvm_user.c,v 1.8 2001/11/28 19:28:15 art Exp $ */ -/* $NetBSD: uvm_user.c,v 1.10 2001/06/02 18:09:27 chs Exp $ */ +/* $OpenBSD: uvm_user.c,v 1.9 2001/12/19 08:58:07 art Exp $ */ +/* $NetBSD: uvm_user.c,v 1.8 2000/06/27 17:29:37 mrg Exp $ */ /* * @@ -50,15 +50,19 @@ * uvm_deallocate: deallocate memory (unmap) */ -void +int uvm_deallocate(map, start, size) - struct vm_map *map; + vm_map_t map; vaddr_t start; vsize_t size; { - if (size == 0) - return; + if (map == NULL) + panic("uvm_deallocate with null map"); + + if (size == (vaddr_t) 0) + return (KERN_SUCCESS); + + return(uvm_unmap(map, trunc_page(start), round_page(start+size))); - uvm_unmap(map, trunc_page(start), round_page(start + size)); } -- cgit v1.2.3