diff options
author | 2017-01-17 17:19:21 +0000 | |
---|---|---|
committer | 2017-01-17 17:19:21 +0000 | |
commit | 1fece9ea8f724ee8ad11a2deeca99a2b27ea7b10 (patch) | |
tree | 4f7898d6b96b93938180c7ba05a40441a96fc454 /sys/uvm/uvm_addr.h | |
parent | Make switch(4) compile with debug again. (diff) | |
download | wireguard-openbsd-1fece9ea8f724ee8ad11a2deeca99a2b27ea7b10.tar.xz wireguard-openbsd-1fece9ea8f724ee8ad11a2deeca99a2b27ea7b10.zip |
Remove uaddr_hint allocator
The hint allocator would have to check that the
allocation does not overlap with brk, stack or text
areas. This would make the address selectors too
entagled. Just use the rnd allocator for hinted allocations
in case pivots are used. This also reduces the amount of code somewhat.
ok kettenis visa deraadt
Diffstat (limited to 'sys/uvm/uvm_addr.h')
-rw-r--r-- | sys/uvm/uvm_addr.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/uvm/uvm_addr.h b/sys/uvm/uvm_addr.h index 74a2cf456f1..f16126da847 100644 --- a/sys/uvm/uvm_addr.h +++ b/sys/uvm/uvm_addr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_addr.h,v 1.6 2016/09/16 01:51:40 dlg Exp $ */ +/* $OpenBSD: uvm_addr.h,v 1.7 2017/01/17 17:19:21 stefan Exp $ */ /* * Copyright (c) 2011 Ariane van der Steldt <ariane@stack.nl> @@ -90,7 +90,6 @@ int uvm_addr_invoke(struct vm_map *, struct uvm_addr_state *uaddr_lin_create(vaddr_t, vaddr_t); #endif struct uvm_addr_state *uaddr_rnd_create(vaddr_t, vaddr_t); -struct uvm_addr_state *uaddr_hint_create(vaddr_t, vaddr_t, vsize_t); #ifndef SMALL_KERNEL struct uvm_addr_state *uaddr_bestfit_create(vaddr_t, vaddr_t); struct uvm_addr_state *uaddr_pivot_create(vaddr_t, vaddr_t); |