freebsd-nq/sys/i386/linux
Andrew Gallatin 242fae60f0 Some linux apps, such as IBM's JDK 1.3, will attempt to mmap thread
stacks near the top of their address space.  If their TOS is greater
than vm_maxsaddr, vm_map_growstack() will confuse the thread stack
with the process stack and deliver a SEGV if they attempt to grow the
thread stack past their current stacksize rlimit.  To avoid this,
adjust vm_maxsaddr upwards to reflect the current stacksize rlimit
rather than the maximum possible stacksize.  It would be better to
adjust the mmap'ed region, but some apps (again, IBM's JDK 1.3) do not
check mmap's return value..

This commit (in conjunction with setting MINSIGSTKSZ to 2048 &
rebuilding your kernel and modules) will get IBM's JDK 1.3 working
with FreeBSD at least well enough to run many of the example applets.

Reviewed by: marcel
Tested by:   sto@stat.duke.edu, many others on freebsd-java@
2000-10-17 00:25:43 +00:00
..
linprocfs Mark directories as directories, not as regular files. 2000-10-10 12:32:44 +00:00
imgact_linux.c Fix #! script exec under linux emulation. If a script is exec'd from a 2000-04-26 20:58:40 +00:00
linux_dummy.c A start at an implemention of linux_rt_sendsig & linux_rt_sigreturn 2000-10-17 00:00:20 +00:00
linux_genassym.c A start at an implemention of linux_rt_sendsig & linux_rt_sigreturn 2000-10-17 00:00:20 +00:00
linux_locore.s A start at an implemention of linux_rt_sendsig & linux_rt_sigreturn 2000-10-17 00:00:20 +00:00
linux_machdep.c Some linux apps, such as IBM's JDK 1.3, will attempt to mmap thread 2000-10-17 00:25:43 +00:00
linux_proto.h regen after addition of linux_rt_sigreturn 2000-10-17 00:03:02 +00:00
linux_syscall.h regen after addition of linux_rt_sigreturn 2000-10-17 00:03:02 +00:00
linux_sysent.c regen after addition of linux_rt_sigreturn 2000-10-17 00:03:02 +00:00
linux_sysvec.c A start at an implemention of linux_rt_sendsig & linux_rt_sigreturn 2000-10-17 00:00:20 +00:00
linux.h A start at an implemention of linux_rt_sendsig & linux_rt_sigreturn 2000-10-17 00:00:20 +00:00
Makefile $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
syscalls.conf $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
syscalls.master A start at an implemention of linux_rt_sendsig & linux_rt_sigreturn 2000-10-17 00:00:20 +00:00