Subject: CVS commit: [netbsd-2-0] src/sys/compat/linux/common
To: None <source-changes@NetBSD.org>
From: Matthias Scheler <tron@netbsd.org>
List: source-changes
Date: 09/05/2004 10:49:57
Module Name:	src
Committed By:	tron
Date:		Sun Sep  5 10:49:57 UTC 2004

Modified Files:
	src/sys/compat/linux/common [netbsd-2-0]: linux_misc.c

Log Message:
Pull up revision 1.128 (requested by jdolecek in ticket #810):
handle mmap() request with MAP_GROWSDOWN flag (request for stack-like
grow-down auto extend segment) by allocating segment sized at
current stack size limit, and offsetting requested/returned address
as required
due to how normal virtual memory management work, allocating the
full sized stack memory segment up-front actually requires exactly same
amount of VA space and physical memory as the Linux 'grow' scheme and the
'grow' scheme is quite a lot more difficult to use in applications correctly,
so it's not very apparent why Linux introduced this feature at all
this fixes Thomas Klausner's Heroes3 crash, and might also
fix PR 26687 by Jan Schaumann


To generate a diff of this commit:
cvs rdiff -r1.122.2.2 -r1.122.2.3 src/sys/compat/linux/common/linux_misc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.