diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-02-26 05:10:41 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-02-26 05:10:41 +0000 |
commit | 2f5d579dd9378450f2c2f1627bb16331ed82f9e7 (patch) | |
tree | 415c7acab8728c2059dedd651fb604b3cb1bbf48 /sys/kern/kern_resource.c | |
parent | bdf5e8705d9964417b0f2083918d9ac81874de35 (diff) |
uvm allocation and name changes
Diffstat (limited to 'sys/kern/kern_resource.c')
-rw-r--r-- | sys/kern/kern_resource.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index 6d978cbad5f..162a2ed7ab1 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_resource.c,v 1.7 1996/11/24 23:33:43 millert Exp $ */ +/* $OpenBSD: kern_resource.c,v 1.8 1999/02/26 05:10:40 art Exp $ */ /* $NetBSD: kern_resource.c,v 1.38 1996/10/23 07:19:38 matthias Exp $ */ /*- @@ -54,6 +54,10 @@ #include <vm/vm.h> +#if defined(UVM) +#include <uvm/uvm_extern.h> +#endif + void limfree __P((struct plimit *)); /* * Resource controls and accounting. @@ -286,8 +290,13 @@ dosetrlimit(p, which, limp) } addr = trunc_page(addr); size = round_page(size); +#if defined(UVM) + (void) uvm_map_protect(&p->p_vmspace->vm_map, + addr, addr+size, prot, FALSE); +#else (void) vm_map_protect(&p->p_vmspace->vm_map, addr, addr+size, prot, FALSE); +#endif } break; |