summaryrefslogtreecommitdiff
path: root/sys/kern/kern_resource.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-02-26 05:10:41 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-02-26 05:10:41 +0000
commit2f5d579dd9378450f2c2f1627bb16331ed82f9e7 (patch)
tree415c7acab8728c2059dedd651fb604b3cb1bbf48 /sys/kern/kern_resource.c
parentbdf5e8705d9964417b0f2083918d9ac81874de35 (diff)
uvm allocation and name changes
Diffstat (limited to 'sys/kern/kern_resource.c')
-rw-r--r--sys/kern/kern_resource.c11
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;