Commit Graph

109555 Commits

Author SHA1 Message Date
phk
87ebe875e5 Split the FILEDESC_LOCK in two variants.
FILEDESC_LOCK_FAST will just grab the interlocking mutex and hold
it.  This should be used for simple modifications of a field.

FILEDESC_LOCK holds a (homegrown) sleepable lock which should be used
where sleeping is required.

The homegrown lock will probably be replaced with a generic type of lock
once we have found out how that should look.

Help and reviews by:	rwatson
2004-11-17 07:39:58 +00:00
phk
84a855d211 Make vnode bypass for fifos (read, write, poll) mandatory. 2004-11-17 07:30:02 +00:00
phk
b83fc3bd5c Make vnode bypass for devices mandatory. 2004-11-17 07:18:49 +00:00
yongari
727a71965b Make interrupt coalescing work on big endian systems.
Also change struct ucode.length to be in number of elements (u_int32_t)
to help endian handling.

MFC after:	2 weeks
2004-11-17 04:25:10 +00:00
simon
d70d971316 Only write the rc.conf header when a new rc.conf is written. This was
accidentally removed in v. 1.211.

Submitted by:	Olafur Osvaldsson <oli@isnic.is>
PR:		bin/73692
MFC after:	1 week
Approved by:	trhodes
2004-11-16 21:59:00 +00:00
jhb
6279b4618b Remove no longer needed I386_CPU option (it was commented out anyways). 2004-11-16 21:23:11 +00:00
jhb
b14a46f9f1 Remove some references to I386_CPU and 80386 CPUs. 2004-11-16 21:22:09 +00:00
jhb
63a4d5f016 Add a note about 80386 support being removed from HEAD. 2004-11-16 21:18:41 +00:00
jhb
dbff03358c No need to add I386_CPU to CFLAGS here for 80386 systems as they are no
longer supported.
2004-11-16 21:12:47 +00:00
jhb
e0e4182386 Remove 80386 support from libc. 2004-11-16 21:01:31 +00:00
jhb
093997241b Remove 80386 support from the ELF run time linker. 2004-11-16 20:45:51 +00:00
jhb
d9dd5974f0 Initiate deorbit burn sequence for 80386 support in FreeBSD: Remove
80386 (I386_CPU) support from the kernel.
2004-11-16 20:42:32 +00:00
jhb
bccae09cc3 Various updates to the anonymous ftp support:
- Allow the upload directory to be optional.  If the upload directory
  field is cleared to the empty string then no directory will be created.
- Don't create a bin/ subdirectory in ftp's home dir containing ls(1) and
  date(1) as ftpd(8) no longer requires it.
- Create a pwd.db file in etc/ instead of a passwd file.
- Ignore NIS compat entries in /etc/group and /etc/master.passwd when
  building the anonymous files.

PR:		bin/60662
Submitted by:	Olafur Osvaldsson oli at isnic dot is
2004-11-16 19:06:42 +00:00
njl
e4c090a3a3 Enable throttling/C3 quirks for PIIX4 parts. Defer checking quirks until
after boot so that PCI is initialized and we can probe for the problem
chipsets.  Note that while probed but unusable states are disabled, they
aren't freed yet.  In the future, it may make sense to detach them.

Tested by:	Adam K Kirchoff <adamk at voicenet com>
MFC after:	2 days
2004-11-16 18:47:42 +00:00
dds
9b9be72edd Improvements and fixes in the 1.241 commit:
- Have TS_ZOMBIE ttys return POLLHUP instead of POLLERR
- Remove unneeded POLLWRNORM (old bug)
- TS_ZOMBIE ttys will set POLLIN and POLLRDNORM
- Do not call selrecord in TS_ZOMBIE ttys

PR:             kern/73821
Reviewed by:	bde
MFC after:	4 weeks
2004-11-16 17:41:16 +00:00
emax
78dbda4164 mdoc police: use .Xr read 2 instead of .Fn read 2004-11-16 17:24:49 +00:00
emax
28b531eafb Add vkdb(4) man page and connect vkbd(4) to the build. 2004-11-16 17:19:04 +00:00
emax
c0cbbbd335 Add virtual AT keyboard driver vkbd(4).
Not yet connected to the build.
2004-11-16 16:59:23 +00:00
jhb
168b5cab1d Adjust the interrupt storm handling code to better handle a storm. When
a storm is detected, enter "storming" mode which throttles the interrupt
source such that the handlers are run once every clock tick.  Previously
we allowed a full set of storm_threshold interations through the handler
before going back to sleep.  Also, this currently will intentionally exit
storming mode once a second to see if the storm has passed.

Tested by:	marcus
Discussed with:	bde
2004-11-16 16:09:46 +00:00
tobez
54a607b470 Use comma instead of a single quote as the decimal point separator for
eu_ES.* locales.

Discussed with: "J. Vicente Carrasco -Bixen- " <carvay@tikismikis.org>,
		the eu_ES.* locales submitter, tjr
2004-11-16 14:58:20 +00:00
phk
48dd9a6f5b Polish code to correctly reflect structure. 2004-11-16 14:47:04 +00:00
phk
b1c0675bf7 Move a FILEDESC_UNLOCK upwards to silence witness. 2004-11-16 14:41:31 +00:00
phk
fc1163f0a8 Move a FILEDESC_UNLOCK up to maintain correct nesting of FILEDESC/FILE
locking.
2004-11-16 09:12:03 +00:00
phk
d4e82fa264 Eliminate pointless goto. 2004-11-16 08:22:06 +00:00
phk
fd5e1b08eb Add missing break. 2004-11-16 06:57:52 +00:00
imp
f5c6bd78b8 Minor style(9) before possible larger commits. 2004-11-16 06:25:02 +00:00
wes
52a74a6e37 Convince mergemaster to maintain/merge ramdisk scripts too.
Submitted by:	Ben Kelly <ben.kelly@ieee.org>
PR:		bin/64079
2004-11-16 04:20:09 +00:00
wes
01a0aebe6c Shutup debugging output. 2004-11-16 04:14:28 +00:00
cognet
508a58575d Simplify a bit bus_dmamap_load_buffer by removing the "first" parameter, use
nseg == -1 instead.

Obtained from:	NetBSD
2004-11-16 00:57:44 +00:00
iedowse
12cd2b67a7 Fix just the worst of the timeout race conditions that the previous
backed out commits were trying to address: when cancelling the timeout
callout, also cancel the abort_task event, since it is possible that
the timeout has already fired and set up an abort_task.
2004-11-16 00:48:27 +00:00
cognet
30141a0a3b MFi386:
- inlina bus_dmamap_load_buffer
- Directly pass the pmap to bus_dmamap_load_buffer, instead of the struct thread
2004-11-15 23:59:28 +00:00
jmg
7967ff7fc6 move the lock after the NULL check so we don't have a hard(er) to diagnose
panic...

Pointed out by:	Bjoern A. Zeeb
2004-11-15 22:24:32 +00:00
phk
9d0ddae9ae Make vnode bypass the default for devices.
Can be disabled in case of problems with
	vfs.devfs.fops=0
in loader.conf
2004-11-15 22:11:09 +00:00
phk
9139c8c24b Give vn_poll single exit point (to make it easier to insert
"mtx_unlock(&Giant)" real soon now).
2004-11-15 21:56:42 +00:00
phk
963b1a9d35 Straighten the ioctl function out to have only one exit point. 2004-11-15 21:51:28 +00:00
phk
81928e7b62 Forgot to remove now unused variable in last commit. 2004-11-15 21:28:00 +00:00
phk
ad9490bd91 It is not necessary to hold vn_start_write/vn_finished_write around VOP_REVOKE. 2004-11-15 21:27:06 +00:00
phk
f55200222b Next FILEDESC_LOCK properly around FILE_LOCK 2004-11-15 21:26:13 +00:00
imp
f4d891bce4 Fix an off by one error. MAXPATHLEN already has +1. 2004-11-15 20:51:32 +00:00
imp
2b8c9c022c Remove more debugging 2004-11-15 20:08:44 +00:00
imp
a67d31fe98 Add acpi_sony to the list of drivers that are built. 2004-11-15 19:46:22 +00:00
jmg
4018ec68e3 fix the missing lock in sk_jfree (verified w/ an assert)
also fix up handling and proding of the tx, _OACTIVE is now handled
better...

Submitted by:	Peter Edwards (sk_jfree)
Obtained from:	OpenBSD and/or NetBSD (tx prod)
2004-11-15 19:37:21 +00:00
yar
aeb4eba9c9 BUGS should stay below SEE ALSO.
Pointed out by:	ru (wearing the mdoc(7) police hat on his head)
2004-11-15 16:38:37 +00:00
imp
018eb94cde Put _ray back, as appropriate. 2004-11-15 16:33:18 +00:00
phk
cda0ee06c4 Make FILE_LOCK and FILEDESC_LOCK nest properly by postponing the the
release of FILEDESC_LOCK a few more lines.
2004-11-15 16:10:55 +00:00
phk
ba522f1e30 Add file ops to fifofs so that we can bypass vnodes (and Giant) for the
heavy-duty operations (read, write, poll/select, kqueue).

Disabled for now, enable with "vfs.fifofs.fops=1" in loader.conf.
2004-11-15 14:51:44 +00:00
yar
cd4fb48929 Mention in the BUGS section that EVFILT_NETDEV events
on vlan(4) will be noticed only if the parent uses miibus(4).

Pointed out by:	John-Mark Gurney <gurney_j -at- resnet.uoregon.edu>
2004-11-15 14:33:17 +00:00
yar
fa3412cf34 Document more fields of struct stat.
Note to mdoc(7) police:
The document date has already been touched today.
2004-11-15 14:16:31 +00:00
yar
a44228ee3f Use .Vt "struct stat" consistently. 2004-11-15 13:58:52 +00:00
yar
629a7c1d18 Nitpicking on grammar. 2004-11-15 13:55:33 +00:00