diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-06-29 06:07:33 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2005-06-29 06:07:33 +0000 |
commit | e7df4e25658f55b9f08ddc3028c3a338066c5723 (patch) | |
tree | 3f11ad939c57d271c8dd0229114e8a131e5df44f /sys/uvm/uvm_map.c | |
parent | 57c18d2ce160d4ab2a024aaf1a4a91e5c2d71d7f (diff) |
on the vax, start mmap BRKSIZ (8MB) into data seg; ok tdeval
Diffstat (limited to 'sys/uvm/uvm_map.c')
-rw-r--r-- | sys/uvm/uvm_map.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c index 9198785226c..e0424a2cc32 100644 --- a/sys/uvm/uvm_map.c +++ b/sys/uvm/uvm_map.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_map.c,v 1.71 2005/05/24 21:11:47 tedu Exp $ */ +/* $OpenBSD: uvm_map.c,v 1.72 2005/06/29 06:07:32 deraadt Exp $ */ /* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */ /* @@ -1119,6 +1119,9 @@ uvm_map_hint(struct proc *p, vm_prot_t prot) addr = (vaddr_t)p->p_vmspace->vm_daddr + MAXDSIZ; #if !defined(__vax__) addr += arc4random() & (MIN((256 * 1024 * 1024), MAXDSIZ) - 1); +#else + /* start malloc/mmap after the brk */ + addr = (vaddr_t)p->p_vmspace->vm_daddr + BRKSIZ; #endif return (round_page(addr)); } |