summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-02-05 15:41:25 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-02-05 15:41:25 +0000
commit469d1b1aae9e146e9c3f00d1633a4446768b7c91 (patch)
tree600ec59838aaf5c897bd82bc9254d48d1512ef33 /sys
parentfd362f75091b583aa0226be47339b24782dab8e0 (diff)
Workaround for VM_MAXUSER_ADDRESS not being page aligned on sparc64.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_fork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c
index 9398e868227..797b49535c6 100644
--- a/sys/kern/kern_fork.c
+++ b/sys/kern/kern_fork.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_fork.c,v 1.49 2002/01/25 15:00:26 art Exp $ */
+/* $OpenBSD: kern_fork.c,v 1.50 2002/02/05 15:41:24 art Exp $ */
/* $NetBSD: kern_fork.c,v 1.29 1996/02/09 18:59:34 christos Exp $ */
/*
@@ -349,7 +349,7 @@ again:
if (flags & FORK_VMNOSTACK) {
/* share as much address space as possible */
(void) uvm_map_inherit(&p1->p_vmspace->vm_map,
- VM_MIN_ADDRESS, VM_MAXUSER_ADDRESS - MAXSSIZ,
+ VM_MIN_ADDRESS, round_page(VM_MAXUSER_ADDRESS - MAXSSIZ),
MAP_INHERIT_SHARE);
}