Commit Graph

106818 Commits

Author SHA1 Message Date
scottl
b336a56514 In maybe_preempt(), ignore threads that are in an inconsistent state. This
is an effective band-aid for at least some of the scheduler corruption seen
recently.  The real fix will involve protecting threads while they are
inconsistent, and will come later.

Submitted by: julian
2004-08-20 05:18:50 +00:00
jmg
c394cda927 put function's name at begining of column... 2004-08-20 05:09:31 +00:00
trhodes
0d6e4617a6 Replace the ERRORS section with a DIAGNOSTICS section.
Requested by:	ru
2004-08-20 05:07:02 +00:00
jmg
8eb64c26ee add pci id for Belkin F5D5005 Gigabit ethernet card. 2004-08-20 05:06:10 +00:00
trhodes
b002cd4ada Fix a few style nits.
Noticed by:	Mr. mdoc(7) himself, ru
2004-08-20 04:52:00 +00:00
jmg
b0492852c8 make sure that the socket is either accepting connections or is connected
when attaching a knote to it...  otherwise return EINVAL...

Pointed out by:	benno
2004-08-20 04:15:30 +00:00
julian
fe9f220a60 Align netgraph message fields ready for 64-bit (and 128 bit :-) machines.
requires a recompile of netgraph users.
Also change the size of a field in the bluetooth code
that was waiting for the next change that needed recompiles so
it could piggyback its way in.

Submitted by:	jdp, maksim
MFC after:	2 days
2004-08-20 01:24:23 +00:00
andre
80ff6433dd Fix a stupid typo which prevented an ipfw KLD unload from successfully cleaning
up its remains.  Do not terminate 'if' lines with ';'.

Spotted by:	claudio@OpenBSD.ORG (sitting 3m from my desk)
Pointy hat to:	andre
2004-08-20 00:36:55 +00:00
davidxu
94265926ab build libthr on amd64. 2004-08-19 23:51:42 +00:00
davidxu
1d227ebfe2 Adjust code to support AMD64, on AMD64, thread needs to set fsbase by
itself before it can execute any other code, so new thread should be
created with all signals are masked until after fsbase is set.
2004-08-19 23:49:04 +00:00
davidxu
be1d6f4eb1 Add AMD64 support code. 2004-08-19 23:41:12 +00:00
andre
5947fa055f When unloading ipfw module use callout_drain() to make absolutely sure that
all callouts are stopped and finished.  Move it before IPFW_LOCK() to avoid
deadlocking when draining callouts.
2004-08-19 23:31:40 +00:00
simon
754abea798 - Remove note about device listings going away.
- Add a note about possibility for duplicate listing of devices.
- Auto generate device listings for the following drivers: ncr, sym,
  umodem, and uscanner

MFC after:	3 days
2004-08-19 22:03:20 +00:00
simon
18e6bc7e91 Add a HARDWARE section which lists supported devices based on the
Hardware Notes.

MFC after:	3 days
2004-08-19 21:37:32 +00:00
simon
e33c8ea9bb Add a HARDWARE section which lists supported devices.
MFC after:	3 days
2004-08-19 21:34:31 +00:00
simon
ac35ab6a2f Add a HARDWARE section which lists supported devices.
MFC after:	3 days
2004-08-19 21:24:45 +00:00
obrien
311d4dd9cc Unconditionally support the AMD64 GART HW. 2004-08-19 20:58:24 +00:00
simon
80499ed5b2 Move listing of DTC 3290 to aha(4).
MFC after:	3 days
2004-08-19 20:49:39 +00:00
andre
93c5d20c77 For IPv6 access pointer to tcpcb only after we have checked it is valid.
Found by:	Coverity's automated analysis (via Ted Unangst)
2004-08-19 20:16:17 +00:00
njl
7a83d1fca4 Add a newline. 2004-08-19 20:16:09 +00:00
kensmith
b9fe831ef7 Temporary bandaid to help sparc64 systems with ATA disks boot. Recent
changes to the ATA driver cause a kernel crash, no fault of the ATA
code.  Work is in progress to add the necessary feature to the sparc64
kernel and this commit will be backed out when it is complete.  This
bandaid is being put in mostly in the interests of getting the first
release snapshot done and out the door.

Tested on:	Ultra-10 exhibiting the insta-panic.
MFC:		Real Soon
2004-08-19 20:13:31 +00:00
phk
59d327838d Add bioq_takefirst().
If the bioq is empty, NULL is returned.  Otherwise the front element
is removed and returned.

This can simplify locking in many drivers from:

	lock()
	bp = bioq_first(bq);
	if (bp == NULL) {
		unlock()
		return
	}
	bioq_remove(bp, bq)
	unlock
to:
	lock()
	bp = bioq_takefirst(bq);
	unlock()
	if (bp == NULL)
		return;
2004-08-19 19:51:51 +00:00
andre
5681dff740 Fix spelling error in my last blurb.
Pointed out by:	ru
2004-08-19 19:45:28 +00:00
wilko
560757ba6f - Note that Adaptec 3940UW won't be recognised by the 164sx SRM
- Warn that 164SX is a picky customer with regards to DIMMs.
2004-08-19 19:27:33 +00:00
obrien
595902e154 86 new vendor ID's from USB.org, and 3 corrections of existing vendor ID's. 2004-08-19 19:21:14 +00:00
andre
a286477242 Put in a note about the ipfw to pfil_hooks conversion and the requirement
of having said in the kernel to be able to use ipfw.
2004-08-19 18:54:54 +00:00
njl
50a2c589ee Disable interrupts after using pmap_enter() to add the identity mapping.
Since pmap_enter() calls pmap_invalidate_page(), which needs interrupts
enabled in the SMP case, we defer the disable to right before saving the
register context.  This has been incorrect for about a year but caused no
real problems because the identity page never actually replaces a previously
mapped page and suspend/resume on SMP systems has been uncommon.

Tested by:	sos
MFC after:	3 days
2004-08-19 18:48:17 +00:00
andre
5f83f24499 Give a useful error message if someone tries to compile IPFIREWALL into the
kernel without specifying PFIL_HOOKS as well.
2004-08-19 18:38:23 +00:00
andre
a0e3d1c151 Add comment that IPFIREWALL now requires option PFIL_HOOKS. 2004-08-19 18:29:55 +00:00
andre
44f45fc5c1 Note that IPFIREWALL depends on PFIL_HOOKS compiled into the kernel as well.
Submitted by:	ceri, simon (mdoc fixes)
2004-08-19 18:04:10 +00:00
andre
efb29124a7 Do not unconditionally ignore IPDIVERT and IPFIREWALL_FORWARD when building
the ipfw KLD.

 For IPFIREWALL_FORWARD this does not have any side effects.  If the module
 has it but not the kernel it just doesn't do anything.

 For IPDIVERT the KLD will be unloadable if the kernel doesn't have IPDIVERT
 compiled in too.  However this is the least disturbing behaviour.  The user
 can just recompile either module or the kernel to match the other one.  The
 access to the machine is not denied if ipfw refuses to load.
2004-08-19 17:59:26 +00:00
andre
14296889b2 Bring back the sysctl 'net.inet.ip.fw.enable' to unbreak the startup scripts
and to be able to disable ipfw if it was compiled directly into the kernel.
2004-08-19 17:38:47 +00:00
njl
5aee38d321 Add debugging to rman_manage_region() as well. This is useful since we
manage subregions in ACPI.

MFC after:	3 days
2004-08-19 16:41:12 +00:00
alfred
b8726e60be Reword recent addition about memory moving.
Requested by: keramida

Bump .Dd

Requested by: ru
2004-08-19 16:34:31 +00:00
clsung
aab2db1d75 Add my birthday.
Approved by:	leeym (mentor)
2004-08-19 16:18:39 +00:00
rwatson
477ea1ed67 Remove GIANT_REQUIRED from setugidsafety() as knote_fdclose() no longer
requires Giant.
2004-08-19 14:59:51 +00:00
brueffer
aa0125927b Add a HARDWARE section and bump the document date
MFC after:	3 days
2004-08-19 14:33:53 +00:00
maxim
8781e41e55 Remove an unnecessary .It.
Reviewed by:	ru
2004-08-19 13:41:06 +00:00
jhb
4d6734a68b Catch up to recent API changes including the removal of the signal_caught
argument to sleepq_timedwait() and the enhancements to the flags argument
passed to sleepq_add().
2004-08-19 12:46:02 +00:00
le
7f135ded9a A volume can be up if it has a degraded RAID5 plex. 2004-08-19 12:03:27 +00:00
jhb
9e08178eb7 Now that the return value semantics of cv's for multithreaded processes
have been unified with that of msleep(9), further refine the sleepq
interface and consolidate some duplicated code:
- Move the pre-sleep checks for theaded processes into a
  thread_sleep_check() function in kern_thread.c.
- Move all handling of TDF_SINTR to be internal to subr_sleepqueue.c.
  Specifically, if a thread is awakened by something other than a signal
  while checking for signals before going to sleep, clear TDF_SINTR in
  sleepq_catch_signals().  This removes a sched_lock lock/unlock combo in
  that edge case during an interruptible sleep.  Also, fix
  sleepq_check_signals() to properly handle the condition if TDF_SINTR is
  clear rather than requiring the callers of the sleepq API to notice
  this edge case and call a non-_sig variant of sleepq_wait().
- Clarify the flags arguments to sleepq_add(), sleepq_signal() and
  sleepq_broadcast() by creating an explicit submask for sleepq types.
  Also, add an explicit SLEEPQ_MSLEEP type rather than a magic number of
  0.  Also, add a SLEEPQ_INTERRUPTIBLE flag for use with sleepq_add() and
  move the setting of TDF_SINTR to sleepq_add() if this flag is set rather
  than sleepq_catch_signals().  Note that it is the caller's responsibility
  to ensure that sleepq_catch_signals() is called if and only if this flag
  is passed to the preceeding sleepq_add().  Note that this also removes a
  sched_lock lock/unlock pair from sleepq_catch_signals().  It also ensures
  that for an interruptible sleep, TDF_SINTR is always set when
  TD_ON_SLEEPQ() is true.
2004-08-19 11:31:42 +00:00
des
4b7b5c6f6a Bump document date.
Reminded by:	ru
2004-08-19 11:25:03 +00:00
jhb
e4ddba3ab3 Generalize the UFS bad magic value used to determine when a filesystem
has only been partly initialized via newfs(8) so that it applies to both
UFS1 and UFS2.

Submitted by:	"Xin LI" delphij at frontfree dot net
MFC:		maybe?
2004-08-19 11:09:13 +00:00
brueffer
e22c3c7213 Document NO_PF and NO_AUTHPF
MFC after:	3 days
2004-08-19 11:00:26 +00:00
ru
64aba3276d Meet the 6.0-CURRENT era. While here, teach mdoc(7) about the upcoming
FreeBSD 4.11-RELEASE.
2004-08-19 10:41:54 +00:00
ru
f1adbb6c14 Meet the new era of 6.0-CURRENT. 2004-08-19 10:34:59 +00:00
des
a43cf2f4f6 Add a NO_BOOT knob to prevent building the boot blocks and loader.
Reviewed by:	ru
MFC after:	3 days
2004-08-19 09:54:28 +00:00
des
aedf82c640 Always quote variables in tests, to ensure correct evaluation even when
they are empty or undefined.

MFC after:	3 days
2004-08-19 08:55:24 +00:00
des
736d98ed04 Print the patch file name in the warning message for missing patch files. 2004-08-19 07:31:10 +00:00
des
8f59c24c11 Clean up, add update_releng_[45].rc. 2004-08-19 07:28:30 +00:00