diff options
author | peter <peter@FreeBSD.org> | 1999-04-19 14:14:14 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-04-19 14:14:14 +0000 |
commit | a74bdeb7d109443c9e5e0c792c2259175cb4174b (patch) | |
tree | 2acafa9158dea8a7e748a4a8903244b94ab9b1fa /sys/compat/linux/linux_misc.c | |
parent | 2fc2e936d3183fa2f055ea3ee01fe2cef1596055 (diff) | |
download | FreeBSD-src-a74bdeb7d109443c9e5e0c792c2259175cb4174b.zip FreeBSD-src-a74bdeb7d109443c9e5e0c792c2259175cb4174b.tar.gz |
unifdef -DVM_STACK - it's been on for a while for x86 and was checked
and appeared to be working for the Alpha some time ago.
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r-- | sys/compat/linux/linux_misc.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 7668454..4ba58ad 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: linux_misc.c,v 1.52 1999/01/26 02:38:10 julian Exp $ + * $Id: linux_misc.c,v 1.53 1999/03/02 00:28:07 julian Exp $ */ #include <sys/param.h> @@ -669,21 +669,8 @@ linux_mmap(struct proc *p, struct linux_mmap_args *args) bsd_args.flags |= MAP_FIXED; if (linux_args.flags & LINUX_MAP_ANON) bsd_args.flags |= MAP_ANON; - -#ifndef VM_STACK - /* Linux Threads will map into the proc stack space, unless - * we prevent it. This causes problems if we're not using - * our VM_STACK options. - */ - if ((unsigned int)linux_args.addr + linux_args.len > (USRSTACK - MAXSSIZ)) - return (EINVAL); -#endif - if (linux_args.flags & LINUX_MAP_GROWSDOWN) { - -#ifdef VM_STACK bsd_args.flags |= MAP_STACK; -#endif /* The linux MAP_GROWSDOWN option does not limit auto * growth of the region. Linux mmap with this option |