John Polstra [Fri, 19 Feb 1999 01:30:43 +0000 (01:30 +0000)]
On the i386, load the ELF dynamic linker where an mmap(0, ...) would
put it, just like on the Alpha. It was wrong to load it at the
fixed address 0x08000000. That should only be done if the dynamic
linker is an executable (not a shared object) with a specific load
address encoded in the object file itself.
This fixes the recent breakage in the Linux emulator.
Nick Hibma [Thu, 18 Feb 1999 21:17:16 +0000 (21:17 +0000)]
Change to a proper numbering scheme for the ugen device. It requires
a unit and endpoint number. This is combined into a minor number.
The naming of the devices in /dev is now /dev/ugen<unit>.<endpoint>
Matthew Dillon [Thu, 18 Feb 1999 19:57:33 +0000 (19:57 +0000)]
Limit number of simultanious asynchronous swap pager I/Os that can
be in progress at any given moment.
Add two swap tuneables to sysctl:
vm.swap_async_max: 4
vm.swap_cluster_max: 16
Recommended values are a cluster size of 8 or 16 pages. async_max is
about right for 1-4 swap devices. Reduce to 2 if swap is eating too much
bandwidth, or even 1 if swap is both eating too much bandwidth and sitting
on a slow network (10BaseT).
The defaults work well across a broad range of configurations and should
normally be left alone.
Kenneth D. Merry [Thu, 18 Feb 1999 18:08:39 +0000 (18:08 +0000)]
Fix sync rate and transfer rate printouts in xpt_announce_periph().
Sync rates like 4.032MHz were getting printed as 4.32MHz.
Also, add a quirk entry for the 18G Quantum Atlas III. Like most other
recent Quantum drives, it bogusly reports queue full. Thanks to Andre
Albsmeier <andre.albsmeier@mchp.siemens.de> for the Atlas III inquiry
information.
Bill Fenner [Thu, 18 Feb 1999 16:54:24 +0000 (16:54 +0000)]
Make .Os behave as defined (unrecognized arguments displayed as given).
Add a warning for unknown BSD versions.
Make ".Os FreeBSD" work without a warning (fix bug in previous commit).
Luoqi Chen [Wed, 17 Feb 1999 21:03:14 +0000 (21:03 +0000)]
Initialize procsig0.ps_refcnt to 1 (instead of 2), this would silence
complaints about ps_refcnt greater than two when we try to fork() a
kthread from proc0 with RFSIGSHARE flag set.
Noticed by: Tor Egge <tegge@fast.no>
Reviewed by: Richard Seaman, Jr. <dick@tar.com>
Bruce Evans [Wed, 17 Feb 1999 13:48:07 +0000 (13:48 +0000)]
Use `${CC} ${CFLAGS} ${LDFLAGS} -nostdlib -Wl...' instead of
`ld ... <fudged ${LDFLAGS}>' to invoke the linker. This gets the
flags and standard library paths right without complications.
Unfortunately, it doesn't help for the X11 library paths -- cc
only appends /aout for standard library paths.
Unlock vnode before messing with map to avoid deadlock between map and
vnode ( e.g. with exec_map and underlying program binary vnode ). Solves
a deadlock that most often occurs during a large -j# buildworld reported
by three people.
Warner Losh [Wed, 17 Feb 1999 05:32:40 +0000 (05:32 +0000)]
Catch up with the past week:
Add better text for the ppbus changes
Add note about libdevstat changing forcing a recompile of some
things in the tree as well as ports that use devstat.
Thanks to those people that used HEADS UP in their message. Large,
rabid mammals to those that wanted to beat the /etc/rc* horse with the
phrase "heads up" in the subject line.
Brian Somers [Tue, 16 Feb 1999 00:16:56 +0000 (00:16 +0000)]
Wait by default for one second after the login script
is complete before checking carrier. If it's there,
the device supports carrier. If it's not it doesn't.
Add the ``set cd'' command for deciding how soon to check
for carrier, and for deciding if carrier is REQUIRED.
The default has changed: Pre 2.0 versions of ppp waited
for 1 second. Version 2 didn't wait, but this causes
problems with some (few?) modems that don't assert carrier
immediately on reporting CONNECT. The one second delay
is back now and can be removed with ``set cd 0''.
Bump the ppp version number in case this needs to be changed
again....
Nick Hibma [Mon, 15 Feb 1999 21:41:43 +0000 (21:41 +0000)]
Applied patch from MAEKAWA Masahide <bishop@rr.iij4u.or.jp>. (PR2)
Seems to solve a problem with a mouse not responding to movements in the
X direction. Problem description is still rather vague and solution is
not exactly clear. Problem might be a compiler optimisation.
Bruce Evans [Mon, 15 Feb 1999 14:15:28 +0000 (14:15 +0000)]
Fixed bitrot in usage message and disordering of options in previous commit.
I'm not sure why we have `mvstat -z'. `sysctl vm.zone' gives more
information. OTOH, `sysctl vm.zone' shouldn't return ASCII data,
and reporting of memory use should be integrated, at least as an
option.
Bruce Evans [Mon, 15 Feb 1999 12:36:21 +0000 (12:36 +0000)]
Don't pass -static in ${LDFLAGS} to ld for building doscmd.kernel,
since it means -s (strip), and static linkage is forced correctly
anyway. Other things in ${LDFLAGS} are still bogusly passed to ld.
This only affects the aout case.
Bill Fenner [Mon, 15 Feb 1999 08:34:14 +0000 (08:34 +0000)]
Clean up some .Os macro uses: quotes are not needed, multiple arguments
don't really work if the first one isn't "FreeBSD", and "FreeBSD-Experimental"
isn't an OS name.
Bill Fenner [Mon, 15 Feb 1999 07:27:18 +0000 (07:27 +0000)]
Change .Fx macro to always display "FreeBSD" and its argument, whether
the argument is a known FreeBSD version or not.
Output an nroff error if .Fx is used with an unknown FreeBSD version.
Change .Nx and .Ox macros to always display the argument, whether
the argument is a known version or not. This eliminates much of the
need to syncrhonize .Nx and .Ox with their source OS's -- only the
exceptions (like ".Nx 1.2a" -> "NetBSD 1.2A") where the argument is
not directly copied to the output need to be added.
Bill Fenner [Mon, 15 Feb 1999 07:24:09 +0000 (07:24 +0000)]
Always define oS to be "FreeBSD $2", no matter whether or not we
know the version number given as the argument to ".Os FreeBSD xxx".
Output nroff warning when we see a version number that we don't
know about.
Matthew Dillon [Mon, 15 Feb 1999 06:52:14 +0000 (06:52 +0000)]
Minor reorganization of vm_page_alloc(). No functional changes have
been made but the code has been reorganized and documented to make
it more readable, reduce the size of the code, and optimize the branch
path caching capabilities that most modern processors have.
Matthew Dillon [Mon, 15 Feb 1999 02:03:40 +0000 (02:03 +0000)]
Fix a bug in the new madvise() code that would possibly (improperly)
free swap space out from under a busy page. This is not legal because
the swap may be reallocated and I/O issued while I/O is still in
progress on the same swap page from the madvise()'d object. This bug
could only occur under extreme paging conditions but might not cause
an error until much later. As a side-benefit, madvise() is now even
smaller.
Dmitrij Tejblum [Sun, 14 Feb 1999 21:42:05 +0000 (21:42 +0000)]
From rev. 1.12 of usr.sbin/pstat/pstat.c by phk:
Reflect the fact that we do not swap on the first <dmmax> blocks of a
swapdev, to protect disklabels and other such magic stuff.
Matthew Dillon [Sun, 14 Feb 1999 20:58:21 +0000 (20:58 +0000)]
Only needed to cast array index from char to unsigned char, did not
also have to cast it to int. (int)(unsigned char)char_exp ->
(unsigned char)char_exp.
Guido van Rooij [Sun, 14 Feb 1999 20:16:15 +0000 (20:16 +0000)]
Somehow, it is possible to get a pcicintr() when in the resume process.
This will trigger inserted()) to be called twice which confuses pccardd.
Add code to not process pcicitr())'s when in the middle of a resume
process. The real insertion of cards and the emulated one in the suspend/resume
code really do not mix up.
Nicolas Souchu [Sun, 14 Feb 1999 17:09:59 +0000 (17:09 +0000)]
The way the interrupt id was calculated was wrong and the lpt
driver was thinking irq was enabled although it wasn't.
This case was particular to a no-interrupt static configuration.
Reported by: "Norman C. Rice" <nrice@emu.sourcee.com>