jhb [Wed, 5 Jan 2005 22:19:44 +0000 (22:19 +0000)]
- Move the function prototypes for kern_setrlimit() and kern_wait() to
sys/syscallsubr.h where all the other kern_foo() prototypes live.
- Resort kern_execve() while I'm there.
jhb [Wed, 5 Jan 2005 21:13:27 +0000 (21:13 +0000)]
Rework the optimization for spinlocks on UP to be slightly less drastic and
turn it back on. Specifically, the actual changes are now less intrusive
in that the _get_spin_lock() and _rel_spin_lock() macros now have their
contents changed for UP vs SMP kernels which centralizes the changes.
Also, UP kernels do not use _mtx_lock_spin() and no longer include it. The
UP versions of the spin lock functions do not use any atomic operations,
but simple compares and stores which allow mtx_owned() to still work for
spin locks while removing the overhead of atomic operations.
wilko [Wed, 5 Jan 2005 20:06:04 +0000 (20:06 +0000)]
Add support for Chase/Perle PCI FAST-4 4 port serial cards which appear
to be the same as Boca Research Turbo Serial 654 (4 serial port).
While add the 8 port variants as well.
imp [Wed, 5 Jan 2005 19:16:01 +0000 (19:16 +0000)]
A large majority of the source files in the tree start their license
and copyright statements in a comment that begins with /*-. Document
this tradition. A strict adherence to this rule will help resellers
that wish to publish all copyright notices, generated automatically
from the tree. There are too many variant licenses to do it purely
by more complicated pattern matching.
vkashyap [Wed, 5 Jan 2005 19:04:28 +0000 (19:04 +0000)]
Changes corresponding to the 9.1.5.2 release of twa on the 3ware website.
The main changes are:
1. Use of multiple bus dma tags.
2. Timing of CAM requests by the driver.
3, Firmware interface change relating to retrieving AEN's.
4. Removal of twa_intrhook.
5. Bundling of latest firmware with BBU capability.
arr [Wed, 5 Jan 2005 06:53:03 +0000 (06:53 +0000)]
- Initial revamp of vop_table.tcl. This scripting is ugly and will be
cleaned up; just wanted to make a place holder. The biggest issue is
that it is an incomplete revamp; that is... the inconsistent naming
table generation is not done yet ... will be added soon with the clean
up. The purpose of this script is to handle the vop_vector changes that
phk@ did over the recent weeks.
brueffer [Wed, 5 Jan 2005 04:31:00 +0000 (04:31 +0000)]
- add new supported chips: 82541ER and 82546GB
- add the long supported, but still missing 82545
- change .Nd to look better (no need to mention FreeBSD there)
- bump .Dd
cognet [Wed, 5 Jan 2005 00:06:15 +0000 (00:06 +0000)]
Disable checksum offloading by default. It seems to produce corrupted packets
with some revisions of the chip (particularly when using multiple TX
descriptors).
mux [Tue, 4 Jan 2005 19:30:14 +0000 (19:30 +0000)]
Allow fxp(4) cards with a revision id of 0 to use the 82503 serial
interface as well. This is not an expected revision id per the
datasheet, but unfortunately there are such cards out there with
a 82557 chipset, and they want to use the 82503.
PR: kern/75739
Reported by: Andre Albsmeier <andre.albsmeier@siemens.com>
jhb [Tue, 4 Jan 2005 18:53:32 +0000 (18:53 +0000)]
Partial sync up to the master syscalls.master file:
- Mark mount, unmount and nmount MPSAFE.
- Add a stub for _umtx_op().
- Mark open(), link(), unlink(), and freebsd32_sigaction() MPSAFE.
pjd [Tue, 4 Jan 2005 12:15:21 +0000 (12:15 +0000)]
- Fix 'rebuild' command - it can no longer relay on retaste event
(we ignore it).
- Remove code used for handling spoil events, as spoiling is not possible
anymore, because we keep consumers open for writing all the time.
phantom [Tue, 4 Jan 2005 11:30:24 +0000 (11:30 +0000)]
Fix 'redraw' of checklist box. It is occurs in situation when size of
checklist box is strictly set via command line, but amount of checklist
items less than height of checklist box. In this case bottom part
of box was not redrawn (occurs when passing focus behind of 'Cancel' button
while configuring any FreeBSD port OPTIONS)
phk [Tue, 4 Jan 2005 07:52:26 +0000 (07:52 +0000)]
Unsupport forceful unmounts of DEVFS.
After disscussing things I have decided to take the easy and
consistent 90% solution instead of aiming for the very involved 99%
solution.
If we allow forceful unmounts of DEVFS we need to decide how to handle
the devices which are in use through this filesystem at the time.
We cannot just readopt the open devices in the main /dev instance since
that would open us to security issues.
For the majority of the devices, this is relatively straightforward
as we can just pretend they got revoke(2)'ed.
Some devices get tricky: /dev/console and /dev/tty for instance
does a sort of recursive open of the real console device. Other devices
may be mmap'ed (kill the processes ?).
And then there are disk devices which are mounted.
The correct thing here would be to recursively unmount the filesystems
mounte from devices from our DEVFS instance (forcefully) and if
this succeeds, complete the forcefully unmount of DEVFS. But if
one of the forceful unmounts fail we cannot complete the forceful
unmount of DEVFS, but we are likely to already have severed a lot
of stuff in the process of trying.
Event attempting this would be a lot of code for a very far out
corner-case which most people would never see or get in touch with.
imp [Tue, 4 Jan 2005 06:25:24 +0000 (06:25 +0000)]
Remove last vestiges of old wd driver. ata works well on pc98 and
there was no objection on the pc98 list when I asked if it could be
removed a while ago.
imp [Tue, 4 Jan 2005 05:34:28 +0000 (05:34 +0000)]
First step in removing OLDCARD from FreeBSD 6.0:
o Move card from all architectures to just pc98. It is only needed there,
although real issues remain with NEWCARD's support of ISA devices.
brueffer [Tue, 4 Jan 2005 04:18:21 +0000 (04:18 +0000)]
- list the LSI MegaRAID SATA 150-(2|4|6) controllers as supported (1)
- mention SATA support in a few places
- AMI -> AMI/LSI for controllers now sold my LSI
- bump .Dd
PR: 61878 (1)
Submitted by: Sten Spans <sten@blinkenlights.nl>
Discussed with: simon (sorting)
MFC after: 3 days
delphij [Tue, 4 Jan 2005 02:24:01 +0000 (02:24 +0000)]
Because the `permission' field in conf_entry is intended to be used as
parameter 2 in chmod(2), which is a mode_t (and in turn a __uint_16_t),
it's more likely that it should be defined as an unsigned variable.
This commit should make newsyslog WARNS=6 clean, but don't bump the knob
until I have a universe build.
rwatson [Mon, 3 Jan 2005 19:56:20 +0000 (19:56 +0000)]
Add a simple regression test for mlock()/munlock() to make sure they
work on a single page as root, and fails on a single page as nobody.
Intended to help diagnose reports regarding insecure memory use with
gnupg.
rwatson [Mon, 3 Jan 2005 19:03:40 +0000 (19:03 +0000)]
The badsect(8) utility uses atol(), which doesn't allow very good error
checking and only recognizes numbers in base 10. The attached patch
checks errno after strtol() and uses a base of 0 to allow octal, or hex
sector numbers too.
rwatson [Mon, 3 Jan 2005 18:59:04 +0000 (18:59 +0000)]
The ffsinfo utility uses atol() to parse numeric values out of optarg
strings. This isn't necessarily a bug, but it can be slightly inconvenient,
because atol() doesn't know how to parse hexadecimal or octal numbers and at
least one of the options of ffsinfo(8) would be easier to use if it did.
Changing atol() -> strtol() allows one to use hex masks for -l MASK, i.e.:
marius [Mon, 3 Jan 2005 18:03:00 +0000 (18:03 +0000)]
Use byteorder(9) functions to implement the [g,s]et[d,w][b,l]e macros so
only one set is needed for either endianess. This also completes them for
big endian archs and fixes the compilation of libncp, netncp, etc. there.
philip [Mon, 3 Jan 2005 13:19:49 +0000 (13:19 +0000)]
Reduce diffs to work in progress before checking in serious changes.
o Move the sysctls under debug.psm.* and hw.psm.* making them a bit
clearer and more consistent with other drivers.
o Remove the debug.psm_soft_timeout sysctl. It was introduced many
moons ago in r1.64 but never referenced anywhere.
o Introduce hw.psm.tap_threshold and hw.psm.tap_timeout to control
the behaviour of taps on touchpads. People might like to fiddle
with these if tapping seems to slow or too fast for them.
o Add debug.psm.loglevel as a tunable so that verbosity can be set
easily at boot-time (to watch probes and such) without having to
compile a kernel with options PSM_DEBUG=N.
sobomax [Mon, 3 Jan 2005 11:07:45 +0000 (11:07 +0000)]
Don't ignore the last line of config file (/etc/hosts, /etc/services, etc)
which doesn't end in \n, since it may be very confusing. Also this should
increase consistency, since most other config files work just fine regardless
of the presence of traling \n in the last line.
julian [Mon, 3 Jan 2005 08:52:26 +0000 (08:52 +0000)]
Remove comment that doesn't seem to be true and add comments describing
what is going on, to replace it. Slight formatting changes
Code here is alredy different to NetBSD.
MFC after: 1 week
silby [Mon, 3 Jan 2005 07:08:37 +0000 (07:08 +0000)]
Add a sysctl (net.inet.tcp.insecure_rst) which allows one to specify
that the RFC 793 specification for accepting RST packets should be
following. When followed, this makes one vulnerable to the attacks
described in "slipping in the window", but it may be necessary in
some odd circumstances.
kientzle [Mon, 3 Jan 2005 01:24:13 +0000 (01:24 +0000)]
Next round of work on ISO9660 support:
* Reference-count the directory data so that
we don't leak memory.
* Correctly step through the directory records
(skipping unrecognized extensions)
* Use better defaults for file modes
* Sort directory entries by offset of the end of the file
rather than the beginning of the file. This fixes a
lot of "out-of-order" problems with zero-length files,
in particular.
* Style fixes, remove some debug code, add some error messages.
marcel [Sun, 2 Jan 2005 21:33:40 +0000 (21:33 +0000)]
Regression test for unaligned loads and stores for short, int, long,
float, double and long double types. No post-increment tests yet.
All tests are skipped if the debug.unaligned_test sysctl variable
cannot be set to 1.