summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_map.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2015-03-30 21:08:41 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2015-03-30 21:08:41 +0000
commitcbcb22b06c8a154b39499941e4bf5b9d6e0ab756 (patch)
tree6067bc0259d8df037242675f31f741069aa8d408 /sys/uvm/uvm_map.h
parent2144a111bea8a88f1cc4c1922c3503207fbf565d (diff)
Extend uvm_map_hint() to get an address range as extra arguments, and make
sure it will return an address within that range. Use this in uaddr_rnd_select() to make sure we will not attempt to pick an address beyond what we are allowed to map. In my trees for 9 months, blackmailed s2k15 attendees into agreeing now would be a good time to commit.
Diffstat (limited to 'sys/uvm/uvm_map.h')
-rw-r--r--sys/uvm/uvm_map.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_map.h b/sys/uvm/uvm_map.h
index df132b17459..c23e070f703 100644
--- a/sys/uvm/uvm_map.h
+++ b/sys/uvm/uvm_map.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_map.h,v 1.53 2015/02/06 09:04:34 tedu Exp $ */
+/* $OpenBSD: uvm_map.h,v 1.54 2015/03/30 21:08:40 miod Exp $ */
/* $NetBSD: uvm_map.h,v 1.24 2001/02/18 21:19:08 chs Exp $ */
/*
@@ -384,7 +384,7 @@ vm_map_t uvm_map_create(pmap_t, vaddr_t, vaddr_t, int);
int uvm_map_extract(struct vm_map*, vaddr_t, vsize_t, vaddr_t*,
int);
vaddr_t uvm_map_pie(vaddr_t);
-vaddr_t uvm_map_hint(struct vmspace *, vm_prot_t);
+vaddr_t uvm_map_hint(struct vmspace *, vm_prot_t, vaddr_t, vaddr_t);
int uvm_map_inherit(vm_map_t, vaddr_t, vaddr_t, vm_inherit_t);
int uvm_map_advice(vm_map_t, vaddr_t, vaddr_t, int);
void uvm_map_init(void);