]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoMove listing of DTC 3290 to aha(4).
Simon L. B. Nielsen [Thu, 19 Aug 2004 20:49:39 +0000 (20:49 +0000)]
Move listing of DTC 3290 to aha(4).

MFC after: 3 days

20 years agoFor IPv6 access pointer to tcpcb only after we have checked it is valid.
Andre Oppermann [Thu, 19 Aug 2004 20:16:17 +0000 (20:16 +0000)]
For IPv6 access pointer to tcpcb only after we have checked it is valid.

Found by: Coverity's automated analysis (via Ted Unangst)

20 years agoAdd a newline.
Nate Lawson [Thu, 19 Aug 2004 20:16:09 +0000 (20:16 +0000)]
Add a newline.

20 years agoTemporary bandaid to help sparc64 systems with ATA disks boot. Recent
Ken Smith [Thu, 19 Aug 2004 20:13:31 +0000 (20:13 +0000)]
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

20 years agoAdd bioq_takefirst().
Poul-Henning Kamp [Thu, 19 Aug 2004 19:51:51 +0000 (19:51 +0000)]
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;

20 years agoFix spelling error in my last blurb.
Andre Oppermann [Thu, 19 Aug 2004 19:45:28 +0000 (19:45 +0000)]
Fix spelling error in my last blurb.

Pointed out by: ru

20 years ago- Note that Adaptec 3940UW won't be recognised by the 164sx SRM
Wilko Bulte [Thu, 19 Aug 2004 19:27:33 +0000 (19:27 +0000)]
- Note that Adaptec 3940UW won't be recognised by the 164sx SRM
- Warn that 164SX is a picky customer with regards to DIMMs.

20 years ago86 new vendor ID's from USB.org, and 3 corrections of existing vendor ID's.
David E. O'Brien [Thu, 19 Aug 2004 19:21:14 +0000 (19:21 +0000)]
86 new vendor ID's from USB.org, and 3 corrections of existing vendor ID's.

20 years agoPut in a note about the ipfw to pfil_hooks conversion and the requirement
Andre Oppermann [Thu, 19 Aug 2004 18:54:54 +0000 (18:54 +0000)]
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.

20 years agoDisable interrupts after using pmap_enter() to add the identity mapping.
Nate Lawson [Thu, 19 Aug 2004 18:48:17 +0000 (18:48 +0000)]
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

20 years agoGive a useful error message if someone tries to compile IPFIREWALL into the
Andre Oppermann [Thu, 19 Aug 2004 18:38:23 +0000 (18:38 +0000)]
Give a useful error message if someone tries to compile IPFIREWALL into the
kernel without specifying PFIL_HOOKS as well.

20 years agoAdd comment that IPFIREWALL now requires option PFIL_HOOKS.
Andre Oppermann [Thu, 19 Aug 2004 18:29:55 +0000 (18:29 +0000)]
Add comment that IPFIREWALL now requires option PFIL_HOOKS.

20 years agoNote that IPFIREWALL depends on PFIL_HOOKS compiled into the kernel as well.
Andre Oppermann [Thu, 19 Aug 2004 18:04:10 +0000 (18:04 +0000)]
Note that IPFIREWALL depends on PFIL_HOOKS compiled into the kernel as well.

Submitted by: ceri, simon (mdoc fixes)

20 years agoDo not unconditionally ignore IPDIVERT and IPFIREWALL_FORWARD when building
Andre Oppermann [Thu, 19 Aug 2004 17:59:26 +0000 (17:59 +0000)]
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.

20 years agoBring back the sysctl 'net.inet.ip.fw.enable' to unbreak the startup scripts
Andre Oppermann [Thu, 19 Aug 2004 17:38:47 +0000 (17:38 +0000)]
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.

20 years agoAdd debugging to rman_manage_region() as well. This is useful since we
Nate Lawson [Thu, 19 Aug 2004 16:41:12 +0000 (16:41 +0000)]
Add debugging to rman_manage_region() as well.  This is useful since we
manage subregions in ACPI.

MFC after: 3 days

20 years agoReword recent addition about memory moving.
Alfred Perlstein [Thu, 19 Aug 2004 16:34:31 +0000 (16:34 +0000)]
Reword recent addition about memory moving.

Requested by: keramida

Bump .Dd

Requested by: ru

20 years agoAdd my birthday.
Cheng-Lung Sung [Thu, 19 Aug 2004 16:18:39 +0000 (16:18 +0000)]
Add my birthday.

Approved by: leeym (mentor)

20 years agoRemove GIANT_REQUIRED from setugidsafety() as knote_fdclose() no longer
Robert Watson [Thu, 19 Aug 2004 14:59:51 +0000 (14:59 +0000)]
Remove GIANT_REQUIRED from setugidsafety() as knote_fdclose() no longer
requires Giant.

20 years agoAdd a HARDWARE section and bump the document date
Christian Brueffer [Thu, 19 Aug 2004 14:33:53 +0000 (14:33 +0000)]
Add a HARDWARE section and bump the document date

MFC after: 3 days

20 years agoRemove an unnecessary .It.
Maxim Konovalov [Thu, 19 Aug 2004 13:41:06 +0000 (13:41 +0000)]
Remove an unnecessary .It.

Reviewed by: ru

20 years agoCatch up to recent API changes including the removal of the signal_caught
John Baldwin [Thu, 19 Aug 2004 12:46:02 +0000 (12:46 +0000)]
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().

20 years agoA volume can be up if it has a degraded RAID5 plex.
Lukas Ertl [Thu, 19 Aug 2004 12:03:27 +0000 (12:03 +0000)]
A volume can be up if it has a degraded RAID5 plex.

20 years agoNow that the return value semantics of cv's for multithreaded processes
John Baldwin [Thu, 19 Aug 2004 11:31:42 +0000 (11:31 +0000)]
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.

20 years agoBump document date.
Dag-Erling Smørgrav [Thu, 19 Aug 2004 11:25:03 +0000 (11:25 +0000)]
Bump document date.

Reminded by: ru

20 years agoGeneralize the UFS bad magic value used to determine when a filesystem
John Baldwin [Thu, 19 Aug 2004 11:09:13 +0000 (11:09 +0000)]
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?

20 years agoDocument NO_PF and NO_AUTHPF
Christian Brueffer [Thu, 19 Aug 2004 11:00:26 +0000 (11:00 +0000)]
Document NO_PF and NO_AUTHPF

MFC after: 3 days

20 years agoMeet the 6.0-CURRENT era. While here, teach mdoc(7) about the upcoming
Ruslan Ermilov [Thu, 19 Aug 2004 10:41:54 +0000 (10:41 +0000)]
Meet the 6.0-CURRENT era.  While here, teach mdoc(7) about the upcoming
FreeBSD 4.11-RELEASE.

20 years agoMeet the new era of 6.0-CURRENT.
Ruslan Ermilov [Thu, 19 Aug 2004 10:34:59 +0000 (10:34 +0000)]
Meet the new era of 6.0-CURRENT.

20 years agoAdd a NO_BOOT knob to prevent building the boot blocks and loader.
Dag-Erling Smørgrav [Thu, 19 Aug 2004 09:54:28 +0000 (09:54 +0000)]
Add a NO_BOOT knob to prevent building the boot blocks and loader.

Reviewed by: ru
MFC after: 3 days

20 years agoAlways quote variables in tests, to ensure correct evaluation even when
Dag-Erling Smørgrav [Thu, 19 Aug 2004 08:55:24 +0000 (08:55 +0000)]
Always quote variables in tests, to ensure correct evaluation even when
they are empty or undefined.

MFC after: 3 days

20 years agoPrint the patch file name in the warning message for missing patch files.
Dag-Erling Smørgrav [Thu, 19 Aug 2004 07:31:10 +0000 (07:31 +0000)]
Print the patch file name in the warning message for missing patch files.

20 years agoClean up, add update_releng_[45].rc.
Dag-Erling Smørgrav [Thu, 19 Aug 2004 07:28:30 +0000 (07:28 +0000)]
Clean up, add update_releng_[45].rc.

20 years agoRELENG_5 is now available.
Dag-Erling Smørgrav [Thu, 19 Aug 2004 07:27:42 +0000 (07:27 +0000)]
RELENG_5 is now available.

20 years agoBranches of interest are RELENG_4_{8,9,10}.
Dag-Erling Smørgrav [Thu, 19 Aug 2004 07:27:21 +0000 (07:27 +0000)]
Branches of interest are RELENG_4_{8,9,10}.

20 years agoComment out the timeout setting; it doesn't work properly.
Dag-Erling Smørgrav [Thu, 19 Aug 2004 07:26:31 +0000 (07:26 +0000)]
Comment out the timeout setting; it doesn't work properly.

20 years agoadd options MPROF_BUFFERS and MPROF_HASH_SIZE that adjust the sizes of
John-Mark Gurney [Thu, 19 Aug 2004 06:38:26 +0000 (06:38 +0000)]
add options MPROF_BUFFERS and MPROF_HASH_SIZE that adjust the sizes of
the mutex profiling buffers.  Document them in the man page and in NOTES.
Ensure _HASH_SIZE is larger than _BUFFERS with a cpp error.

20 years agoAcquire and release Giant around a call to VOP_BMAP(). (This is a
Alan Cox [Thu, 19 Aug 2004 02:37:12 +0000 (02:37 +0000)]
Acquire and release Giant around a call to VOP_BMAP().  (This is a
prerequisite to any further reduction in Giant's use by vm_fault().)

20 years agoAdd UNP_UNLOCK_ASSERT() to asser that the UNIX domain socket subsystem
Robert Watson [Thu, 19 Aug 2004 01:45:16 +0000 (01:45 +0000)]
Add UNP_UNLOCK_ASSERT() to asser that the UNIX domain socket subsystem
lock is not held.

Rather than annotating that the lock is released after calls to
unp_detach() with a comment, annotate with an assertion.

Assert that the UNIX domain socket subsystem lock is not held when
unp_externalize() and unp_internalize() are called.

20 years agoPush down pcbinfo and inpcb locking from udp_send() into udp_output().
Robert Watson [Thu, 19 Aug 2004 01:13:10 +0000 (01:13 +0000)]
Push down pcbinfo and inpcb locking from udp_send() into udp_output().
This provides greater context for the locking and allows us to avoid
locking the pcbinfo structure if not binding operations will take
place (i.e., already bound, connected, and no expliti sendto()
address).

20 years agoIn in_pcbrehash(), do assert the inpcb lock as well as the pcbinfo lock.
Robert Watson [Thu, 19 Aug 2004 01:11:17 +0000 (01:11 +0000)]
In in_pcbrehash(), do assert the inpcb lock as well as the pcbinfo lock.

20 years agoWe really don't want to receive spoil event for synchroniztion consumers.
Pawel Jakub Dawidek [Wed, 18 Aug 2004 23:33:37 +0000 (23:33 +0000)]
We really don't want to receive spoil event for synchroniztion consumers.

20 years agoBring ia64 back from the dead. After a call one needs to restore the
Marcel Moolenaar [Wed, 18 Aug 2004 23:06:47 +0000 (23:06 +0000)]
Bring ia64 back from the dead. After a call one needs to restore the
GP register, because it's clobbered for calls across load modules. The
previous commit inserted the call to _init_tls() between the call to
atexit() and the restoration of the GP register clobbered by it. Fix:
restore GP before we call _init_tls().

Pointy hat: dfr@

20 years agoSkip entries for GBDE swap devices if they are commented out in /etc/fstab.
Thomas Quinot [Wed, 18 Aug 2004 21:54:40 +0000 (21:54 +0000)]
Skip entries for GBDE swap devices if they are commented out in /etc/fstab.

Reviewed by: des

20 years agoDo not override the class provided dumpconf function.
Poul-Henning Kamp [Wed, 18 Aug 2004 21:42:08 +0000 (21:42 +0000)]
Do not override the class provided dumpconf function.

20 years agoClarify that realloc and reallocf may move the memory allocation.
Alfred Perlstein [Wed, 18 Aug 2004 21:13:15 +0000 (21:13 +0000)]
Clarify that realloc and reallocf may move the memory allocation.

20 years agoPretty print some informational messages.
Lukas Ertl [Wed, 18 Aug 2004 20:43:56 +0000 (20:43 +0000)]
Pretty print some informational messages.

20 years agoFix a stupid bug in the drive taste function: when checking if a
Lukas Ertl [Wed, 18 Aug 2004 20:34:45 +0000 (20:34 +0000)]
Fix a stupid bug in the drive taste function: when checking if a
drive is known to the configuration check also if it already has a geom.
Without this check several needless geoms are created and valid
configuration data was overwritten.

This change obsoletes the need for a separate geom to taste an
offered provider and the consumer doesn't need to be opened with the
exclusive bit set.

20 years agoInitialize iobase from the resource allocated by bus_alloc_resource_any()
Justin T. Gibbs [Wed, 18 Aug 2004 17:17:43 +0000 (17:17 +0000)]
Initialize iobase from the resource allocated by bus_alloc_resource_any()
rather than with isa_get_port().  This value is only used in diagnostics,
but the value we want to print is the value in our resource, not in any
hint.

20 years agoNOP class doesn't operate on metadata, so the spoil event can be safely
Pawel Jakub Dawidek [Wed, 18 Aug 2004 16:58:42 +0000 (16:58 +0000)]
NOP class doesn't operate on metadata, so the spoil event can be safely
ignored.

20 years agoss if_vx through indent, and use ANSI function definitions, prior to adding
Justin T. Gibbs [Wed, 18 Aug 2004 16:56:54 +0000 (16:56 +0000)]
ss if_vx through indent, and use ANSI function definitions, prior to adding
if_media and DMA support to the driver.  The previous style was inconsistent
making it difficult to emulate existing style.

20 years agoDump device status on 'list' command.
Pawel Jakub Dawidek [Wed, 18 Aug 2004 16:46:51 +0000 (16:46 +0000)]
Dump device status on 'list' command.

20 years ago- Add a manual page for graid3(8) utility.
Pawel Jakub Dawidek [Wed, 18 Aug 2004 16:41:30 +0000 (16:41 +0000)]
- Add a manual page for graid3(8) utility.
- Connect it to the build.
- Inform geom(8) about it.

20 years agoIf _CRS fails, assume that it succeeded. The ASUS K8V (and others) defines
Nate Lawson [Wed, 18 Aug 2004 16:39:59 +0000 (16:39 +0000)]
If _CRS fails, assume that it succeeded.  The ASUS K8V (and others) defines
single-entry irq links even though it uses an APIC.  It appears that it
ignores _SRS when in APIC mode but returns a valid irq at other times.

20 years agoAdd a line to BUGS section about the need of implementation description.
Pawel Jakub Dawidek [Wed, 18 Aug 2004 16:37:04 +0000 (16:37 +0000)]
Add a line to BUGS section about the need of implementation description.

20 years agoInvert the polarity of two tests in the recovery code that could cause
Justin T. Gibbs [Wed, 18 Aug 2004 16:35:52 +0000 (16:35 +0000)]
Invert the polarity of two tests in the recovery code that could cause
the driver to issue a bus reset more quickly than intended.  We want to
*wait* if we find another SCB that could be the cause of this timeout,
not proceed to a bus reset.

Noticed by: kan

20 years agoRemove spurious EISA definitions left over from the initial port of the
Justin T. Gibbs [Wed, 18 Aug 2004 16:33:14 +0000 (16:33 +0000)]
Remove spurious EISA definitions left over from the initial port of the
aic7xxx driver to U320 hardware.

20 years agoRemove ISA attachments dependence on eisaconf.h
Justin T. Gibbs [Wed, 18 Aug 2004 16:31:56 +0000 (16:31 +0000)]
Remove ISA attachments dependence on eisaconf.h

Noticed by: Takahashi Yoshihiro <nyan@jp.FreeBSD.org>

20 years agoChanges to make twa work on amd64.
Vinod Kashyap [Wed, 18 Aug 2004 16:14:44 +0000 (16:14 +0000)]
Changes to make twa work on amd64.

Reviewed by:re
Approved by:re

20 years agoAdd some missing empty lines.
Pawel Jakub Dawidek [Wed, 18 Aug 2004 16:14:24 +0000 (16:14 +0000)]
Add some missing empty lines.

20 years agoFix typo.
Pawel Jakub Dawidek [Wed, 18 Aug 2004 16:09:20 +0000 (16:09 +0000)]
Fix typo.

20 years agoActually one can specify more than one device to stop.
Pawel Jakub Dawidek [Wed, 18 Aug 2004 15:56:02 +0000 (15:56 +0000)]
Actually one can specify more than one device to stop.

20 years agoOk, let's try again:
Pawel Jakub Dawidek [Wed, 18 Aug 2004 15:54:52 +0000 (15:54 +0000)]
Ok, let's try again:
Add manual page for gmirror(8) utility.

20 years ago- Add a manual page for gmirror(8) utility.
Pawel Jakub Dawidek [Wed, 18 Aug 2004 15:48:18 +0000 (15:48 +0000)]
- Add a manual page for gmirror(8) utility.
- Connect it to the build.
- Inform geom(8) manual page about it.

Reviewed by: trhodes

20 years agoDocument the effects of modifying the .MAKEFLAGS internal
Ruslan Ermilov [Wed, 18 Aug 2004 13:25:46 +0000 (13:25 +0000)]
Document the effects of modifying the .MAKEFLAGS internal
variable and using the .MAKEFLAGS special target, and the
differences between them.

Reviewed by: harti

20 years agoA fix from rev. 1.52 of gnu/usr.bin/cc/cc_tools/Makefile was lost
Ruslan Ermilov [Wed, 18 Aug 2004 13:21:40 +0000 (13:21 +0000)]
A fix from rev. 1.52 of gnu/usr.bin/cc/cc_tools/Makefile was lost
in rev. 1.57.  Fix this regression by making cc_tools a new-style
build-tool in Makefile.inc1.  For details of what has been fixed,
please see the gnu/usr.bin/cc/cc_tools/Makefile,v 1.52 commit log.

Caught this by accidentally touching param.h while in the process
of cross-buildworld for amd64.

20 years agoEnable build of Netgraph modules on all architectures.
Ruslan Ermilov [Wed, 18 Aug 2004 11:59:28 +0000 (11:59 +0000)]
Enable build of Netgraph modules on all architectures.

Tested by: make universe

20 years agoBuild a dummy opt_compat.h header since linprocfs.c now requires it.
Tim J. Robbins [Wed, 18 Aug 2004 11:39:56 +0000 (11:39 +0000)]
Build a dummy opt_compat.h header since linprocfs.c now requires it.

20 years agoRemove NOMAN so loader man pages are installed.
Peter Grehan [Wed, 18 Aug 2004 11:31:00 +0000 (11:31 +0000)]
Remove NOMAN so loader man pages are installed.

Noticed by: ru

20 years agoPPC definitions required for 'make release'
Peter Grehan [Wed, 18 Aug 2004 11:11:46 +0000 (11:11 +0000)]
PPC definitions required for 'make release'

Reviewed by: ru
Submitted by: ssouhlal

20 years agoAllow MFS images to be built without a disklabel for releases
Peter Grehan [Wed, 18 Aug 2004 11:10:05 +0000 (11:10 +0000)]
Allow MFS images to be built without a disklabel for releases
that don't require one i.e. PPC.

Reviewed by: ru
Submitted by: ssouhlal

20 years agoAdd files needed for PPC release ISOs. These are built with the
Peter Grehan [Wed, 18 Aug 2004 11:08:19 +0000 (11:08 +0000)]
Add files needed for PPC release ISOs. These are built with the
HFS/ISO9660 extensions to be bootable on Power Macs.

 boot.tbxi - the CHRP script executed by Open Firmware when auto-booting
             CDs
 hfs.map - map Unix files to HFS creator/type fields

Reviewed by:    ru
Submitted by:   ssouhlal

20 years agoAlways allocate a TLS area even if its empty - libpthread relies on
Doug Rabson [Wed, 18 Aug 2004 10:18:58 +0000 (10:18 +0000)]
Always allocate a TLS area even if its empty - libpthread relies on
having a valid %gs when it initialises.

MFC after: 2 days

20 years agoBump the manpage date.
Maxim Konovalov [Wed, 18 Aug 2004 09:39:24 +0000 (09:39 +0000)]
Bump the manpage date.

Noticed by: ru

20 years agoRetire hw.pci.allow_unsupported_io_range.
Maxim Konovalov [Wed, 18 Aug 2004 09:25:55 +0000 (09:25 +0000)]
Retire hw.pci.allow_unsupported_io_range.

PR: bin/70533
Submitted by: Gavin Atkinson

20 years agoBump synchronization ID if we are sure, that we have ACTIVE components.
Pawel Jakub Dawidek [Wed, 18 Aug 2004 07:28:48 +0000 (07:28 +0000)]
Bump synchronization ID if we are sure, that we have ACTIVE components.

20 years agoMy take at improving the universe: allow the worlds to be
Ruslan Ermilov [Wed, 18 Aug 2004 07:17:01 +0000 (07:17 +0000)]
My take at improving the universe: allow the worlds to be
built in parallel.  Examples:

make universe
Build worlds sequentially, each world sequentially.

make universe JFLAG=-j4
Build worlds sequentially, each world in parallel.

make -j4 universe
make -j4 universe JFLAG=-j2
Build four worlds in parallel, each world will be
built in parallel too.  World parallelization is
set to four in the first synopsis, and to two in
the second.

make -j4 universe JFLAG=-B
Build worlds in parallel, each world sequentially.

("world" == buildworld followed by buildkernels.)

Prayers: obrien, phk

20 years agoAdd a HARDWARE section to the example section 4 manual page.
Simon L. B. Nielsen [Wed, 18 Aug 2004 07:05:35 +0000 (07:05 +0000)]
Add a HARDWARE section to the example section 4 manual page.

Reviewed by: ru
MFC after: 3 days

20 years agoCall AcpiLeaveSleepState() before DEVICE_RESUME(). The former calls the
Nate Lawson [Wed, 18 Aug 2004 07:00:43 +0000 (07:00 +0000)]
Call AcpiLeaveSleepState() before DEVICE_RESUME().  The former calls the
BFS and WAK methods, which are needed to initialize some devices before
the driver can resume them.  This was the original order.

MFC after: 2 days

20 years agoMoved the MAKEOBJDIRPREFIX check from Makefile.inc1 to Makefile,
Ruslan Ermilov [Wed, 18 Aug 2004 06:49:56 +0000 (06:49 +0000)]
Moved the MAKEOBJDIRPREFIX check from Makefile.inc1 to Makefile,
to suppress warnings with installworld and distributeworld when
env(1) cannot be found in the PATH.

20 years agoTurn on the FreeBSD login user capabilities database support.
David E. O'Brien [Wed, 18 Aug 2004 06:46:25 +0000 (06:46 +0000)]
Turn on the FreeBSD login user capabilities database support.

20 years agoNetBSD has updated their groff to a version that handles .Nm the same
David E. O'Brien [Wed, 18 Aug 2004 06:41:13 +0000 (06:41 +0000)]
NetBSD has updated their groff to a version that handles .Nm the same
way ours does.  So use the vendor files now.

20 years agoMerge rev 1.2 (OPIE, login user capabilities database, PAM) support
David E. O'Brien [Wed, 18 Aug 2004 06:34:20 +0000 (06:34 +0000)]
Merge rev 1.2 (OPIE, login user capabilities database, PAM) support
into 'nbsd_20040809'.

20 years agoThis commit was generated by cvs2svn to compensate for changes in r133936,
David E. O'Brien [Wed, 18 Aug 2004 06:29:48 +0000 (06:29 +0000)]
This commit was generated by cvs2svn to compensate for changes in r133936,
which included commits to RCS files with non-trunk default branches.

20 years agoImport of LukeM's ftpd taken from the NetBSD CVS repo on 9-Aug-2004.
David E. O'Brien [Wed, 18 Aug 2004 06:29:48 +0000 (06:29 +0000)]
Import of LukeM's ftpd taken from the NetBSD CVS repo on 9-Aug-2004.
This closes the remotely exploitable vulnerability documented at
ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2004-009.txt.asc
http://www.vuxml.org/freebsd/c4b025bb-f05d-11d8-9837-000c41e2cdad.html

20 years agoWhen one entry in the RSDT is corrupted, just skip it instead of bailing out.
Nate Lawson [Wed, 18 Aug 2004 05:56:07 +0000 (05:56 +0000)]
When one entry in the RSDT is corrupted, just skip it instead of bailing out.
This gets us the info we need on systems which have proprietary tables that
don't match the standard.  For instance, an AMI system has a table of type
"OEMB" with an invalid checksum.

Tested by: Maxim Maximov <mcsi_at_mcsi.pp.ru>
MFC after: 1 day

20 years agoUpdate man page for supported table types.
Nate Lawson [Wed, 18 Aug 2004 05:50:32 +0000 (05:50 +0000)]
Update man page for supported table types.

MFC after: 1 day

20 years agoRemove the ACPIIO_ENABLE and ACPIIO_DISABLE ioctls as well as all
Nate Lawson [Wed, 18 Aug 2004 05:48:24 +0000 (05:48 +0000)]
Remove the ACPIIO_ENABLE and ACPIIO_DISABLE ioctls as well as all
callers.  These ioctls attempted to enable and disable the ACPI
interpreter at runtime.  In practice, it is not possible to boot with
ACPI and then disable it on many systems and trying to do so can cause
crashes, interrupt storms, etc.  Binary compatibility with userland is
retained.

MFC after: 2 days

20 years agoThis commit was generated by cvs2svn to compensate for changes in r133931,
Nate Lawson [Wed, 18 Aug 2004 05:41:21 +0000 (05:41 +0000)]
This commit was generated by cvs2svn to compensate for changes in r133931,
which included commits to RCS files with non-trunk default branches.

20 years agoAdd a padding member to the header overlaid on data allocated in the
Nate Lawson [Wed, 18 Aug 2004 05:41:21 +0000 (05:41 +0000)]
Add a padding member to the header overlaid on data allocated in the
ACPI_DEBUG case.  Without this, use of allocated memory is unaligned and
causes a trap on ia64.  Intel may fix this differently in a subsequent
release but this is adequate for now.

Submitted by: marcel
MFC after: 2 days

20 years agoAssert Giant in fwe_start(), as it is not yet MPSAFE.
Robert Watson [Wed, 18 Aug 2004 04:54:54 +0000 (04:54 +0000)]
Assert Giant in fwe_start(), as it is not yet MPSAFE.

20 years agoSince pc98 shares the AGP driver with the i386, also define the
Robert Watson [Wed, 18 Aug 2004 03:46:39 +0000 (03:46 +0000)]
Since pc98 shares the AGP driver with the i386, also define the
amd64 agp option here in order to let the pc98 kernel build
complete.  This doesn't seem right, since there probably aren't
plans to build a pc98 amd64 box; however, it's not clear to me
how to get config to generate an opt_agp.h without an option
defined.

20 years agoWe're not yet ready for BURN_BRIDGES to break the build, as
Robert Watson [Wed, 18 Aug 2004 03:13:16 +0000 (03:13 +0000)]
We're not yet ready for BURN_BRIDGES to break the build, as
BURN_BRIDGES won't be removed for a bit yet.  Fix more of the
build in HEAD.

20 years agoFix build of ip_input.c with "options IPSEC" -- the "pass:" label
Robert Watson [Wed, 18 Aug 2004 03:11:04 +0000 (03:11 +0000)]
Fix build of ip_input.c with "options IPSEC" -- the "pass:" label
is used with both FAST_IPSEC and IPSEC, but was defined for only
FAST_IPSEC.

20 years agoMake the kernel compile again if you are not using PFIL_HOOKS
Peter Wemm [Wed, 18 Aug 2004 00:37:46 +0000 (00:37 +0000)]
Make the kernel compile again if you are not using PFIL_HOOKS

20 years agoHEAD is now 6-CURRENT
Scott Long [Wed, 18 Aug 2004 00:21:12 +0000 (00:21 +0000)]
HEAD is now 6-CURRENT

20 years agoConvert ipfw to use PFIL_HOOKS. This is change is transparent to userland
Andre Oppermann [Tue, 17 Aug 2004 22:05:54 +0000 (22:05 +0000)]
Convert ipfw to use PFIL_HOOKS.  This is change is transparent to userland
and preserves the ipfw ABI.  The ipfw core packet inspection and filtering
functions have not been changed, only how ipfw is invoked is different.

However there are many changes how ipfw is and its add-on's are handled:

 In general ipfw is now called through the PFIL_HOOKS and most associated
 magic, that was in ip_input() or ip_output() previously, is now done in
 ipfw_check_[in|out]() in the ipfw PFIL handler.

 IPDIVERT is entirely handled within the ipfw PFIL handlers.  A packet to
 be diverted is checked if it is fragmented, if yes, ip_reass() gets in for
 reassembly.  If not, or all fragments arrived and the packet is complete,
 divert_packet is called directly.  For 'tee' no reassembly attempt is made
 and a copy of the packet is sent to the divert socket unmodified.  The
 original packet continues its way through ip_input/output().

 ipfw 'forward' is done via m_tag's.  The ipfw PFIL handlers tag the packet
 with the new destination sockaddr_in.  A check if the new destination is a
 local IP address is made and the m_flags are set appropriately.  ip_input()
 and ip_output() have some more work to do here.  For ip_input() the m_flags
 are checked and a packet for us is directly sent to the 'ours' section for
 further processing.  Destination changes on the input path are only tagged
 and the 'srcrt' flag to ip_forward() is set to disable destination checks
 and ICMP replies at this stage.  The tag is going to be handled on output.
 ip_output() again checks for m_flags and the 'ours' tag.  If found, the
 packet will be dropped back to the IP netisr where it is going to be picked
 up by ip_input() again and the directly sent to the 'ours' section.  When
 only the destination changes, the route's 'dst' is overwritten with the
 new destination from the forward m_tag.  Then it jumps back at the route
 lookup again and skips the firewall check because it has been marked with
 M_SKIP_FIREWALL.  ipfw 'forward' has to be compiled into the kernel with
 'option IPFIREWALL_FORWARD' to enable it.

 DUMMYNET is entirely handled within the ipfw PFIL handlers.  A packet for
 a dummynet pipe or queue is directly sent to dummynet_io().  Dummynet will
 then inject it back into ip_input/ip_output() after it has served its time.
 Dummynet packets are tagged and will continue from the next rule when they
 hit the ipfw PFIL handlers again after re-injection.

 BRIDGING and IPFW_ETHER are not changed yet and use ipfw_chk() directly as
 they did before.  Later this will be changed to dedicated ETHER PFIL_HOOKS.

More detailed changes to the code:

 conf/files
Add netinet/ip_fw_pfil.c.

 conf/options
Add IPFIREWALL_FORWARD option.

 modules/ipfw/Makefile
Add ip_fw_pfil.c.

 net/bridge.c
Disable PFIL_HOOKS if ipfw for bridging is active.  Bridging ipfw
is still directly invoked to handle layer2 headers and packets would
get a double ipfw when run through PFIL_HOOKS as well.

 netinet/ip_divert.c
Removed divert_clone() function.  It is no longer used.

 netinet/ip_dummynet.[ch]
Neither the route 'ro' nor the destination 'dst' need to be stored
while in dummynet transit.  Structure members and associated macros
are removed.

 netinet/ip_fastfwd.c
Removed all direct ipfw handling code and replace it with the new
'ipfw forward' handling code.

 netinet/ip_fw.h
Removed 'ro' and 'dst' from struct ip_fw_args.

 netinet/ip_fw2.c
(Re)moved some global variables and the module handling.

 netinet/ip_fw_pfil.c
New file containing the ipfw PFIL handlers and module initialization.

 netinet/ip_input.c
Removed all direct ipfw handling code and replace it with the new
'ipfw forward' handling code.  ip_forward() does not longer require
the 'next_hop' struct sockaddr_in argument.  Disable early checks
if 'srcrt' is set.

 netinet/ip_output.c
Removed all direct ipfw handling code and replace it with the new
'ipfw forward' handling code.

 netinet/ip_var.h
Add ip_reass() as general function.  (Used from ipfw PFIL handlers
for IPDIVERT.)

 netinet/raw_ip.c
Directly check if ipfw and dummynet control pointers are active.

 netinet/tcp_input.c
Rework the 'ipfw forward' to local code to work with the new way of
forward tags.

 netinet/tcp_sack.c
Remove include 'opt_ipfw.h' which is not needed here.

 sys/mbuf.h
Remove m_claim_next() macro which was exclusively for ipfw 'forward'
and is no longer needed.

Approved by: re (scottl)

20 years agoFix a deadlock on boot for some systems where reading the battery status
Nate Lawson [Tue, 17 Aug 2004 18:36:07 +0000 (18:36 +0000)]
Fix a deadlock on boot for some systems where reading the battery status
also generates a notify.  Since we held the lock over this call, the
notify never got to run and the battery status read never returned.
Document this also.

Tested by: Maxim Maximov <mcsi_at_mcsi.pp.ru>
Approved by: re (scottl)

20 years agoDefer the capture of the "expected sync bits" until the first "normal"
Justin T. Gibbs [Tue, 17 Aug 2004 18:12:37 +0000 (18:12 +0000)]
Defer the capture of the "expected sync bits" until the first "normal"
data packet is received from the mouse.  In the case of many KVM's,
this avoids a bug in their mouse emulation that sends back incorrect
sync when you explicitly request a data packet from the mouse.  Without
this change, you must force the driver into stock PS/2 mode or be flooded
with a never ending stream of "out of sync" messages on these KVMs.

Approved by: re

20 years agoUpdate Document Date to match last change.
Marc Fonvieille [Tue, 17 Aug 2004 07:44:25 +0000 (07:44 +0000)]
Update Document Date to match last change.

Approved by: re