<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/compat/linux/linux_misc.c, branch release/2.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F2.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F2.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>1996-11-02T10:41:29Z</updated>
<entry>
<title>This commit was manufactured by cvs2svn to create branch 'RELENG_2_2'.</title>
<updated>1996-11-02T10:41:29Z</updated>
<author>
<name>cvs2svn</name>
<email>cvs2svn@FreeBSD.org</email>
</author>
<published>1996-11-02T10:41:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=2fce0b4e66baed619f83c7226d51fe90862f0122'/>
<id>urn:sha1:2fce0b4e66baed619f83c7226d51fe90862f0122</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Clean up -Wunused warnings.</title>
<updated>1996-06-12T05:11:41Z</updated>
<author>
<name>Gary Palmer</name>
<email>gpalmer@FreeBSD.org</email>
</author>
<published>1996-06-12T05:11:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c23670e2949d9e72d99006b4f3be147c712f2f89'/>
<id>urn:sha1:c23670e2949d9e72d99006b4f3be147c712f2f89</id>
<content type='text'>
Reviewed by:		bde
</content>
</entry>
<entry>
<title>First pass at cleaning up macros relating to pages, clusters and all that.</title>
<updated>1996-05-02T10:43:17Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>1996-05-02T10:43:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f8845af0dbef25d2e6f611245f459918081b0cb2'/>
<id>urn:sha1:f8845af0dbef25d2e6f611245f459918081b0cb2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Removed never-used #includes of &lt;machine/cpu.h&gt;.  Many were apparently</title>
<updated>1996-04-07T17:39:28Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>1996-04-07T17:39:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=6ffde942bf3c33906c93f86d2e59e4390f939a97'/>
<id>urn:sha1:6ffde942bf3c33906c93f86d2e59e4390f939a97</id>
<content type='text'>
copied from bad examples.
</content>
</entry>
<entry>
<title>Fixed unsigned longs that should have been vm_offset_t.</title>
<updated>1996-03-19T15:03:00Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>1996-03-19T15:03:00Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ede8dc43a2624d29d33de0a0bbdd0990d978b7c3'/>
<id>urn:sha1:ede8dc43a2624d29d33de0a0bbdd0990d978b7c3</id>
<content type='text'>
vm_offset_t is currently unsigned long but should probably be plain
unsigned for i386's to match the choice of minimal types to represent
for fixed-width types in Lite2.  Anyway, it shouldn't be assumed
to be unsigned long.

I only fixed the type mismatches that were detected when I changed
vm_offset_t to unsigned.  Only pointer type mismatches were detected.
</content>
</entry>
<entry>
<title>Remove references to MAP_FILE..  That is now "default" and is only</title>
<updated>1996-03-12T06:20:19Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1996-03-12T06:20:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=71d7d1b17aac58f60ca8dcc25d2e3785c8c9c081'/>
<id>urn:sha1:71d7d1b17aac58f60ca8dcc25d2e3785c8c9c081</id>
<content type='text'>
a "#define MAP_FILE 0" that is still there for net-2 source compatability.
</content>
</entry>
<entry>
<title>Fix the vm_map_remove and vm_map_protect calls..  Somewhere along the</title>
<updated>1996-03-10T23:25:17Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1996-03-10T23:25:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=0946c36c96b60bd1cef4f5537f394828eacc37a7'/>
<id>urn:sha1:0946c36c96b60bd1cef4f5537f394828eacc37a7</id>
<content type='text'>
line, these had got (start, length) arguments instead of (start, end)
args.  This could be the cause of Robert Sanders lockups with ZMAGIC
binaries.
</content>
</entry>
<entry>
<title>update linux_times() and linux_utime() emulation,</title>
<updated>1996-03-04T21:03:11Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1996-03-04T21:03:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=dbc09a6375d8b3bfb7ae2f93fc8f3fbde0c01391'/>
<id>urn:sha1:dbc09a6375d8b3bfb7ae2f93fc8f3fbde0c01391</id>
<content type='text'>
fix sigsuspend() (actually back out my recent change there)
and regen the syscall tables..
</content>
</entry>
<entry>
<title>Mega-commit for Linux emulator update..  This has been stress tested under</title>
<updated>1996-03-02T19:38:20Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1996-03-02T19:38:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d66a506616078adf4d266a309f979ffd95fe634f'/>
<id>urn:sha1:d66a506616078adf4d266a309f979ffd95fe634f</id>
<content type='text'>
netscape-2.0 for Linux running all the Java stuff.  The scrollbars are now
working, at least on my machine. (whew! :-)

I'm uncomfortable with the size of this commit, but it's too
inter-dependant to easily seperate out.

The main changes:

COMPAT_LINUX is *GONE*.  Most of the code has been moved out of the i386
machine dependent section into the linux emulator itself.  The int 0x80
syscall code was almost identical to the lcall 7,0 code and a minor tweak
allows them to both be used with the same C code.  All kernels can now
just modload the lkm and it'll DTRT without having to rebuild the kernel
first.  Like IBCS2, you can statically compile it in with "options LINUX".

A pile of new syscalls implemented, including getdents(), llseek(),
readv(), writev(), msync(), personality().  The Linux-ELF libraries want
to use some of these.

linux_select() now obeys Linux semantics, ie: returns the time remaining
of the timeout value rather than leaving it the original value.

Quite a few bugs removed, including incorrect arguments being used in
syscalls..  eg:  mixups between passing the sigset as an int, vs passing
it as a pointer and doing a copyin(), missing return values, unhandled
cases, SIOC* ioctls, etc.

The build for the code has changed.  i386/conf/files now knows how
to build linux_genassym and generate linux_assym.h on the fly.

Supporting changes elsewhere in the kernel:

The user-mode signal trampoline has moved from the U area to immediately
below the top of the stack (below PS_STRINGS).  This allows the different
binary emulations to have their own signal trampoline code (which gets rid
of the hardwired syscall 103 (sigreturn on BSD, syslog on Linux)) and so
that the emulator can provide the exact "struct sigcontext *" argument to
the program's signal handlers.

The sigstack's "ss_flags" now uses SS_DISABLE and SS_ONSTACK flags, which
have the same values as the re-used SA_DISABLE and SA_ONSTACK which are
intended for sigaction only.  This enables the support of a SA_RESETHAND
flag to sigaction to implement the gross SYSV and Linux SA_ONESHOT signal
semantics where the signal handler is reset when it's triggered.

makesyscalls.sh no longer appends the struct sysentvec on the end of the
generated init_sysent.c code.  It's a lot saner to have it in a seperate
file rather than trying to update the structure inside the awk script. :-)

At exec time, the dozen bytes or so of signal trampoline code are copied
to the top of the user's stack, rather than obtaining the trampoline code
the old way by getting a clone of the parent's user area.  This allows
Linux and native binaries to freely exec each other without getting
trampolines mixed up.
</content>
</entry>
<entry>
<title>This is an extract of changes from what I am currently running...</title>
<updated>1996-02-16T18:40:50Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1996-02-16T18:40:50Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=5297fc55c8f1f96f0d44ed639fa27d19effd2af9'/>
<id>urn:sha1:5297fc55c8f1f96f0d44ed639fa27d19effd2af9</id>
<content type='text'>
- Optimise the linux a.out loading and uselib system calls so they
  take advantage of some of John's recent interface improvements.
  Basically, this means they make far less map changes than before.
- Attempt to plug some potentially nasty kernel_map memory leaks..
- Improve support for QMAGIC libs (I only use QMAGIC (ie: a.out libraries from
  the slackware 3.0 dist) but this depends on other changes to enhance
  the /compat/linux support)
- uselib goes out through a single exit as part of the resource tracking
  that I did when closing the resource leaks on errors.  This could be
  cleaner than what I did, but making a 30-deep nested if/else was not my
  idea of fun, neither did I want to repeat the same code 30 times over for
  each failure possibility.  I guess this function needs to be split into
  smaller functions to solve this.

I've been running the Linux Netscape-2.0 (with Java) to test this, and apart
from the long-standing problem with the missing scrollbars, it appears to
still work as before with ZMAGIC libs (and the leaks)..  However, I've
been using it with mods for the signal trampoline code for native linux stack
frames on signals and exterminated the blasted sigreturn printf() problem,
so I can't be certain that there is not a dependency on something else.
</content>
</entry>
</feed>
