summaryrefslogtreecommitdiff
path: root/sys/i386/linux/linux_misc.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-04-19 14:14:14 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-04-19 14:14:14 +0000
commitdb42d90829b451163479b271c7b6c0811b4656ba (patch)
treedc49838ef7da183b9c6c5cd5541a25faccb915f7 /sys/i386/linux/linux_misc.c
parent5f5a2519b4bf850ac104b70c30bae81f9c68d20f (diff)
Notes
Diffstat (limited to 'sys/i386/linux/linux_misc.c')
-rw-r--r--sys/i386/linux/linux_misc.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/i386/linux/linux_misc.c b/sys/i386/linux/linux_misc.c
index 76684546ba99..4ba58ad3a70e 100644
--- a/sys/i386/linux/linux_misc.c
+++ b/sys/i386/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