summaryrefslogtreecommitdiff
path: root/sys/compat/svr4
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2010-12-15 04:59:54 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2010-12-15 04:59:54 +0000
commitb38aff3bb464aa95b8b2f90afe716b60ec2cb942 (patch)
treec216eccadfeff6571e435c478e3bbc32d33b2c15 /sys/compat/svr4
parent0f3a260613b896e64171926d73bdf2f5d5eaa481 (diff)
add a BRKSIZ define and use it for the heap gap constant, decoupling
heap gap from max data size. nothing else changes yet. ok deraadt
Diffstat (limited to 'sys/compat/svr4')
-rw-r--r--sys/compat/svr4/svr4_misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/svr4/svr4_misc.c b/sys/compat/svr4/svr4_misc.c
index dd2130514a2..22327acbd4b 100644
--- a/sys/compat/svr4/svr4_misc.c
+++ b/sys/compat/svr4/svr4_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: svr4_misc.c,v 1.55 2010/07/26 01:56:27 guenther Exp $ */
+/* $OpenBSD: svr4_misc.c,v 1.56 2010/12/15 04:59:52 tedu Exp $ */
/* $NetBSD: svr4_misc.c,v 1.42 1996/12/06 03:22:34 christos Exp $ */
/*
@@ -370,7 +370,7 @@ svr4_sys_mmap(p, v, retval)
SCARG(&mm, addr) = SCARG(uap, addr);
SCARG(&mm, pos) = SCARG(uap, pos);
- rp = (void *) round_page((vaddr_t)p->p_vmspace->vm_daddr + MAXDSIZ);
+ rp = (void *) round_page((vaddr_t)p->p_vmspace->vm_daddr + BRKSIZ);
if ((SCARG(&mm, flags) & MAP_FIXED) == 0 &&
SCARG(&mm, addr) != 0 && SCARG(&mm, addr) < rp)
SCARG(&mm, addr) = rp;
@@ -404,7 +404,7 @@ svr4_sys_mmap64(p, v, retval)
SCARG(&mm, addr) = SCARG(uap, addr);
SCARG(&mm, pos) = SCARG(uap, pos);
- rp = (void *) round_page((vaddr_t)p->p_vmspace->vm_daddr + MAXDSIZ);
+ rp = (void *) round_page((vaddr_t)p->p_vmspace->vm_daddr + BRKSIZ);
if ((SCARG(&mm, flags) & MAP_FIXED) == 0 &&
SCARG(&mm, addr) != 0 && SCARG(&mm, addr) < rp)
SCARG(&mm, addr) = rp;