Commit Graph

191 Commits

Author SHA1 Message Date
jlemon
5898b80ae0 Fix duplicate linux_mount definition 2001-02-20 02:16:07 +00:00
jlemon
c50375af66 Allow debugging output to be controlled on a per-syscall granularity.
Also clean up debugging output in a slightly more uniform fashion.

The default behavior remains the same (all debugging output is turned on)
2001-02-16 16:40:43 +00:00
jlemon
0116e39ef9 Re-gen auto generated files. 2001-02-16 14:47:24 +00:00
jlemon
ff569e8974 Remove dummy stub functions. 2001-02-16 14:46:16 +00:00
jlemon
f14626c607 Add mount syscall to linux emulation. Also improve emulation of reboot. 2001-02-16 14:42:11 +00:00
jhb
a2fcfc567a Proc locking. 2001-01-24 10:27:11 +00:00
marcel
8eeca746c6 Minor cleanups:
o  remove unused prototypes,
o  remove unused extern declarations,
o  move prototypes up.
2000-12-05 09:06:41 +00:00
marcel
3e304e6b3a Don't auto-generate the syscalls. 2000-12-03 01:30:31 +00:00
marcel
c65eb08805 Don't auto-generate syscalls. 2000-12-03 01:28:51 +00:00
marcel
9c3e0a9d85 Don't unregister the ioctl handlers before we verified we
can unload. Doing so leaves the linuxulator in a crippled
state (no ioctl support) when Linux binaries are run at
unload time.

While here, consistently spell ELF in capitals and perform
some minor style improvements.

ELF spelling submitted by: asmodai
2000-11-23 03:21:58 +00:00
gallatin
ae7541c2af Use the linux_connect() on alpha rather than passing directly through
to our native connect().  This is required to deal with the differences
in the way linux handles connects on non-blocking sockets.

This gets the private beta of the Compaq Linux/alpha JDK working
on FreeBSD/alpha

Approved by: marcel
2000-11-16 01:05:53 +00:00
gallatin
5a6d9ce7f2 make the fcntl() flags match what the linux/alpha port uses, not
what linux/i386 uses
2000-11-16 00:58:07 +00:00
gallatin
6c1cb7d414 Enable linux thread support on the alpha. The guts of linux_clone was
mainly cut-n-pasted from the i386 port, except for the method of setting
the child's stack which is the only MD part of this function.

I've tested with the example apps shipped with the linux threads source
code (ex1-ex6) and with several binary builds of Mozilla.
2000-11-10 23:04:31 +00:00
marcel
7a85ddcb36 Make MINSIGSTKSZ machine dependent, and have the sigaltstack
syscall compare against a variable sv_minsigstksz in struct
sysentvec as to properly take the size of the machine- and
ABI dependent struct sigframe into account.

The SVR4 and iBCS2 modules continue to have a minsigstksz of
8192 to preserve behavior. The real values (if different) are
not known at this time. Other ABI modules use the real
values.

The native MINSIGSTKSZ is now defined as follows:

Arch		MINSIGSTKSZ
----		-----------
alpha		    4096
i386		    2048
ia64		   12288

Reviewed by: mjacob
Suggested by: bde
2000-11-09 08:25:48 +00:00
gallatin
d9eefce03d back out 1.66 -- the Elfxx_Brandinfo compat_3_brand field doesn't exist
in -current
2000-11-09 01:53:05 +00:00
obrien
99ee129346 Fix generated include path.
Approved by:	JKH
2000-11-04 07:21:37 +00:00
obrien
6fffc502bc Fix the Elf64 branding initialization. 2000-11-04 05:04:47 +00:00
obrien
1602110695 Sort. 2000-11-02 04:13:51 +00:00
gallatin
89fdf0155f Support for the linux ipc syscalls on the alpha, where each one has
its own syscall rather than going through a demux function like
linux_ipc() on i386
2000-11-01 23:17:31 +00:00
gallatin
3f807ea577 use DUMMY macro and support from linux_util.h 2000-11-01 23:13:49 +00:00
gallatin
e340707e93 Move the linux abi's alpha md files over to using David's build-time
syscall generation method
2000-11-01 23:07:25 +00:00
gallatin
b15897b63c fix linux_termio and linux_termios structs on alpha. alpha differences
are in the termios struct (probably because linux wants to be compatible
with the osf/1 termios struct), not the termio struct.
2000-11-01 22:36:41 +00:00
obrien
f0e52bd35b Apply style(9). 2000-11-01 16:38:40 +00:00
obrien
73d533616b Minimal set of diffs from the i386 bits to the AlphaLinux.
(based on a patch to sys/i386/linux/linux_dummy.c by gallatin)
2000-11-01 16:34:16 +00:00
obrien
0db42c9fb1 Need to dummy-out rt_sigreturn.
submitted by:	gallatin
2000-11-01 08:52:24 +00:00
obrien
cd8c7a49e3 Need to include sys/proc.h. 2000-11-01 08:49:48 +00:00
obrien
91604846be I don't know why this used to compile for me, but now struct
linux_sigcontext seems to have changed and some members are gone.
2000-11-01 08:48:53 +00:00
obrien
68d6eada1e Make the target a little bit more generic. 2000-11-01 08:47:34 +00:00
obrien
3442ab179c Apply style(9). [best I could] 2000-10-23 08:46:25 +00:00
obrien
508ea78bf3 Apply style(9).
(best I could)
2000-10-23 08:36:59 +00:00
obrien
0e820d6be8 Sort the #define's. 2000-10-23 08:29:04 +00:00
obrien
ed6c5eae68 Minimal set of diffs from the i386 bits to the AlphaLinux. 2000-10-23 08:15:58 +00:00
obrien
7e4a890930 Re-order the #define's into a more logical one. 2000-10-23 08:13:19 +00:00
obrien
a683df4891 We need to explicitly tell the args struct for COMPAT functions we use
that use the same args struct as their non-COMPAT counter parts.
2000-10-23 02:20:01 +00:00
obrien
addaf21e5e Somehow I left out sycall #98 2000-10-22 21:47:07 +00:00
obrien
947a094612 Minor whitespace cleanup. 2000-10-22 21:42:03 +00:00
obrien
8acb3d7a12 Minimal set of diffs from the i386 bits to the AlphaLinux.
Submitted by:	gallatin (content, minimization by me)
2000-10-22 21:36:27 +00:00
gallatin
de0fd0ba23 A start at an implemention of linux_rt_sendsig & linux_rt_sigreturn
and associated user-level signal trampoline glue.

Without this patch, an SA_SIGINFO style handler can be installed by a linux
app, but if the handler accesses its sip argument, it will get a garbage
pointer and likely segfault.

We currently supply a valid pointer, but its contents are mainly
garbage.  Filling this in properly is future work.

This is the second of 3 commits that will get IBM's JDK 1.3 working with
FreeBSD ...
2000-10-17 00:00:20 +00:00
obrien
220104b9b3 Minimal set of diffs from the i386 bits to the AlphaLinux.
Submitted by:	gallatin (content, minimization by me)
2000-09-07 06:12:41 +00:00
obrien
8d5ac97dc0 Minimal set of diffs from the i386 bits to the AlphaLinux.
Submitted by:	gallatin (content, minimization by me)
2000-09-06 19:26:17 +00:00
obrien
a39ef2dd4e Add the AlphaLinux locore support.
Submitted by:	gallatin
2000-09-06 18:26:29 +00:00
peter
64e5fdafc8 Revive these files in their new location. These were repo copied from
the old files before Marcel lost the history on them.

Requested by:	obrien
2000-09-06 17:59:21 +00:00
marcel
bc4f92e3d1 When sigaltstack is called with a stack size that's not smaller
than LINUX_MINSIGSTKSZ but smaller than MINSIGSTKSZ, cheat and
pass MINSIGSTKSZ to the kernel. This is a workaround.

Submitted through: nate
2000-09-06 06:08:54 +00:00
marcel
8f21a1d75a Fix typo in license. 2000-08-25 07:32:24 +00:00
marcel
95acd4232e Finish the Linuxulator MD/MI split.
In summary:
o  This file has been moved to sys/compat/linux,
o  Any MD syscalls in this file are moved to
   linux_machdep.c in sys/i386/linux,
o  Include directives, makefiles and config files
   have been updated.
2000-08-22 07:08:33 +00:00
marcel
ba57d4d63e Update include directives for Linuxulator headers after the
MD/MI split.
2000-08-22 05:57:55 +00:00
marcel
e3768a332d Collect the MD syscalls from /sys/compat/linux here. Since this
is a new file, fix most of the style bugs at the same time.
2000-08-22 02:24:02 +00:00
peter
b1f887e12b Sigh. Fix SYS_exit problems. I misunderstood the significance of these
trailing options.
2000-07-29 10:05:25 +00:00
peter
2a565e00c7 Change the 'exit()' system call to 'sys_exit()'. This avoids overlapping
gcc's internal exit() prototypes and the (futile) hackery that we did to
try and avoid warnings.  main() was renamed for similar reasons.
Remove an exit related hack from makesyscalls.sh.
2000-07-29 00:16:28 +00:00
marcel
b16aaad667 Remove the only use of SCARG and perform dead code elimination. 2000-07-27 01:22:24 +00:00