diff options
author | 2001-11-28 13:47:37 +0000 | |
---|---|---|
committer | 2001-11-28 13:47:37 +0000 | |
commit | 738a5b4da06e019a6663e50907eee782a84c1d2c (patch) | |
tree | a9528876cee85d24717d63972424ba0a09fc472e /sys/uvm/uvm_user.c | |
parent | typo in sockopt level name (ipsec6 related) (diff) | |
download | wireguard-openbsd-738a5b4da06e019a6663e50907eee782a84c1d2c.tar.xz wireguard-openbsd-738a5b4da06e019a6663e50907eee782a84c1d2c.zip |
Sync in more uvm changes from NetBSD.
This time we're getting rid of KERN_* and VM_PAGER_* error codes and
use errnos instead.
Diffstat (limited to 'sys/uvm/uvm_user.c')
-rw-r--r-- | sys/uvm/uvm_user.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/sys/uvm/uvm_user.c b/sys/uvm/uvm_user.c index cd2cacbe837..e6a6ba1d738 100644 --- a/sys/uvm/uvm_user.c +++ b/sys/uvm/uvm_user.c @@ -1,5 +1,5 @@ -/* $OpenBSD: uvm_user.c,v 1.6 2001/11/06 01:35:04 art Exp $ */ -/* $NetBSD: uvm_user.c,v 1.8 2000/06/27 17:29:37 mrg Exp $ */ +/* $OpenBSD: uvm_user.c,v 1.7 2001/11/28 13:47:40 art Exp $ */ +/* $NetBSD: uvm_user.c,v 1.9 2001/03/15 06:10:58 chs Exp $ */ /* * @@ -50,19 +50,15 @@ * uvm_deallocate: deallocate memory (unmap) */ -int +void uvm_deallocate(map, start, size) vm_map_t map; vaddr_t start; vsize_t size; { - 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))); + if (size == 0) + return; + uvm_unmap(map, trunc_page(start), round_page(start + size)); } |