Commit Graph

84255 Commits

Author SHA1 Message Date
julian
670abbd965 Make ng_fec.c compile again since Sam's changes.
Submitted by:	Hiten Pandya (hiten@unixdaemons.com)
2002-12-23 22:31:24 +00:00
phk
5394bd24f2 Outdent the string rather than use concatenation. 2002-12-23 22:12:17 +00:00
phk
65a5a08ab4 Detediousficate declaration of fileops array members by introducing
typedefs for them.
2002-12-23 21:53:20 +00:00
phk
6ea56d82cb Change the chip description from "DFE-550TX" to "DL10050".
The DL10050 chip is used on the 550TX and 580TX cards, probably
others as well.
2002-12-23 21:50:47 +00:00
alc
fd54e9500a - Hold the page queues lock around vm_page_wakeup(). 2002-12-23 21:47:46 +00:00
phk
03b1cfa8f3 s/sokqfilter/soo_kqfilter/ for consistency with the naming of all
other socket/file operations.
2002-12-23 21:37:28 +00:00
alc
1f8c44d8c6 - Hold the kernel_object's lock around vm_page_insert(..., kernel_object,
...).
2002-12-23 20:39:15 +00:00
alc
218bd15d76 - Hold the kernel_object's lock around vm_page_alloc(kernel_object,...).
- Hold the page queues lock around vm_page_wakeup().
2002-12-23 20:10:47 +00:00
kbyanc
8d5c6e8eb5 Make preprocessor support more generic by passing all command-line options
after -p except for the last (the ruleset file to process) to the
preprocessor for interpretation.  This allows command-line options besides
-U and -D to be passed to cpp(1) and m4(1) as well as making it easier to
use other preprocessors.

Sponsored By:	NTT Multimedia Communications Labs
MFC after:	1 week
2002-12-23 20:08:21 +00:00
trhodes
cdcec629b7 Document protection bits.
PR:		46252
Submitted by:	Jeroen Ruigrok van der Werven <asmodai@wxs.nl>
2002-12-23 19:25:03 +00:00
pdeuskar
0582aaff7f - Move to array based indexing for TX/RX descriptor/buffer management
- Added support for ITR (interrupt throttle register). This feature is available on
adapters based on 82545 and above
- Fixed problem with vlan support when traffic has priority bits set. (kern/45907)

PR:			kern/45907
MFC after:		1 week
2002-12-23 19:11:23 +00:00
dillon
bf2e159ab6 Bring the diskless manual page more up-to-date. It still needs a lot of work. 2002-12-23 18:44:22 +00:00
ru
24514a3504 Fixed the abuses of .Ql visible on stderr in troff mode.
PR:		docs/37176
2002-12-23 16:04:51 +00:00
ru
d6e68e6e33 mdoc(7) police: fixed the misplaced .Bl call. 2002-12-23 15:36:04 +00:00
ru
8dc7d59515 mdoc(7) police: markup nits. 2002-12-23 15:30:40 +00:00
ru
787c5b6fd6 mdoc(7) police: removed gratuitous .Pp call. 2002-12-23 15:21:57 +00:00
ru
db201086d3 mdoc(7) police: markup nit. 2002-12-23 15:21:38 +00:00
ru
4514af8728 mdoc(7) police: most -mdoc macros can take multiple arguments. 2002-12-23 15:15:35 +00:00
ru
b8a043ea43 mdoc(7) police: markup nits. 2002-12-23 15:14:12 +00:00
ru
84d2e9a3c1 mdoc(7) police: more `The .Nm utility' + markup nit. 2002-12-23 15:08:01 +00:00
ru
b80bc2a193 mdoc(7) police: spelling, removed (scheduled again) hard sentence breaks. 2002-12-23 15:05:18 +00:00
ru
2603e3401d mdoc(7) police: markup nits. 2002-12-23 15:00:56 +00:00
ru
9dedf98428 mdoc(7) police: grammar and spelling nits. 2002-12-23 14:59:07 +00:00
ru
c2940e387a mdoc(7) police: markup fixes. 2002-12-23 14:55:28 +00:00
ru
9431e2e032 Added xref to syncache(4). 2002-12-23 14:51:18 +00:00
ru
6a2ca97591 mdoc(7) police: markup and grammar fixes for previous delta. 2002-12-23 14:50:31 +00:00
ru
8e62e1fb03 rn_walktree*() compute the next leaf before applying a function
to current leaves because function may vanish the current node.

If parent RTA_GENMASK route has a clone (a "cloning clone"), an
rn_walktree_from() starting from parent will cause another walk
starting from clone.  If a function is either rt_fixdelete() or
rt_fixchange(), this recursive walk may vanish the leaf that is
remembered by an outer walk (the "next leaf" above), panicing a
system when it resumes with an outer walk.

The following script paniced my single-user mode booted system:

: sysctl net.inet.ip.forwarding=1
: ipfw add 1 allow ip from any to any
: ifconfig lo0 127.1
: route add -net 10 -genmask 255.255.255.0 127.1
: telnet 10.1			# rt_fixchange() panic
: telnet 10.2
: telnet 10.1
: route delete -net 10		# rt_fixdelete() panic

For the time being, avoid these races by disallowing recursive
walks in rt_fixchange() and rt_fixdelete().

Also, make a slight optimization in the rtrequest(RTM_RESOLVE)
case: there is no reason to call rt_fixchange() in this case.

PR:		kern/37606
MFC after:	5 days
2002-12-23 13:12:41 +00:00
dillon
8faf6a1cd2 A pile of patches, most notably some Doc policing by Hiten Pandya. 2002-12-23 07:27:53 +00:00
dillon
06070f0d42 Redo the initial rc_ng check to avoid rc.conf pollution occuring too early,
initdiskless may retarget /etc and various rc.conf files.  The initial check
is now done in a subshell.
Reviewed by:	Mike Makonnen <mtm@identd.net>
2002-12-23 07:09:44 +00:00
dillon
084bb6a384 Add development.7
Reminded by: Sean Kelly <smkelly@zombie.org>
2002-12-23 06:46:48 +00:00
alc
1fd05afee9 Avoid holding the vnode interlock around malloc() or free() to prevent a
lock order reversal.

Reviewed by:	jeff
2002-12-23 06:20:41 +00:00
alc
8aa378e33a Eliminate some dead code. (Any possible use for this code died with
vm/vm_page.c revision 1.220.)

Submitted by:	bde
2002-12-23 04:35:38 +00:00
marcel
d7aa4991cf Fix a De Morgan bug: If we only expect a memory range OR an
I/O port range, then we should ignore a resource if it's NOT
a memory range AND NOT an I/O port range.
The OR in the condition caused us to ignore perfectly valid
memory addresses.

While here, remove redundant parenthesis and reindent the
debug print to avoid long lines.
2002-12-23 03:48:59 +00:00
jake
bca6c3ce8b - Fix a bug where the faulting address for an mmu miss could sometimes be
clobbered due to some debug code.  This was harmless and just superfluous
  soft faults.
- Update some comments.
2002-12-23 02:18:45 +00:00
jake
aabf3b3c0d - Rearrange pmap_bootstrap slightly to be more in dependency order.
- Put the kernel tsb before before the kernel load address, below
  VM_MIN_KERNEL_ADDRESS, instead of after the kernel where it consumes
  usable kva.  This is magic mapped so the virtual address is irrelevant,
  it just needs to be out of the way.
2002-12-22 23:01:14 +00:00
dillon
088ad71293 Forgot to add rcconf.sh to the Makefile, and forgot to rename rcconf to
rcconf.sh in the last commit.
2002-12-22 22:25:53 +00:00
dillon
23f9424abc Do not unconditionally load the configuration files for the RCNG case.
Instead, load them as part of the rc.d system.  This allows us to prioritize
the initidiskless script so it runs before the configuration files are loaded
and allows us to get rid of the exit 2 hack in /etc/rc.  The exit 2 never
worked anyway since it did not unset the prior configuration, causing the
diskless code to not operate properly.

Do a major cleanup and revamping of the diskless code for RCNG.  This will
be backported to the non-RCNG scripts as well as -stable.

With suggestions from: Mike Makonnen <mtm@identd.net>
MFC after:	7 days
2002-12-22 22:18:41 +00:00
mike
9a7dc5fb7a Add suseconds_t and useconds_t for storing microseconds. 2002-12-22 22:02:41 +00:00
dwmalone
08902a22a4 Use '\033' rather than '\e' as the latter is a gccism.
PR:             46015
Submitted by:   Jeroen Ruigrok van der Werven <asmodai@wxs.nl>
MFC after:      1 week
2002-12-22 21:35:14 +00:00
schweikh
9bcd0e5829 english(4) police. 2002-12-22 21:04:59 +00:00
jake
ca866f7c20 - Add a spin lock to single thread cache invalidation and tlb flush ipis,
which allows ipis to be sent outside of Giant.
- Remove the ap boot mutex, which is unused.
2002-12-22 20:50:23 +00:00
kris
e56441353f Enforce correct ordering of the filedesc structure and pipe mutex, because
WITNESS can get the order wrong if it guesses based on first use.

Reviewed by:	jhb, alfred
2002-12-22 16:32:34 +00:00
pb
4bd54ee799 Fix typo: vunerable -> vulnerable. 2002-12-22 15:29:48 +00:00
schweikh
b8c88ad57c Correct minor grammos.
MFC after:	3 days
2002-12-22 14:39:23 +00:00
pb
fe37dcf6dc Remove forgotten INP_UNLOCK(inp) in my previous commit.
Reported by: hsu
2002-12-22 13:04:08 +00:00
kan
d63c37a83d Add a word, lost in previos commit. 2002-12-22 07:08:14 +00:00
kan
2ee48238d7 Add note about GCC -fno-pcc-struct-return being default again. The
breakage window was about 18 days long.

Submitted by:	juli
Approved by:	re (rwatson)
2002-12-22 07:00:45 +00:00
kan
e92b0edc4c Back out the -fpcc-struct-return fixes.
Approved by:	re (rwatson)
2002-12-22 06:41:09 +00:00
tjr
cbdfee6d6f MB_LEN_MAX is not MD, move it to the MI limits.h. 2002-12-22 06:38:45 +00:00
kan
e05e18de33 Fix a bug in GCC which effectively prevents DEFAULT_PCC_STRUCT_RETURN from
having any effect. This restores a calling convention traditionally used
by FreeBSD/i386 and which is expected by a number of assembly sources
in libc.

Reviewed by:	obrien
Approved by:	re (rwatson)
2002-12-22 05:57:53 +00:00