diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-12-19 08:58:08 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-12-19 08:58:08 +0000 |
commit | d8afae924f4db99650aa0df115c6ae66ed02b950 (patch) | |
tree | a2cbc045f0eb624a394f8e45fea1a58ecf1faaf0 /sys/uvm/uvm_user.c | |
parent | 4a6c79ff4f05aaae32458104529a9a9e0d3d208b (diff) |
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.
Diffstat (limited to 'sys/uvm/uvm_user.c')
-rw-r--r-- | sys/uvm/uvm_user.c | 18 |
1 files changed, 11 insertions, 7 deletions
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)); } |