]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoAdd MD syscalls to sync the icache and to drain the write buffer.
cognet [Thu, 23 Sep 2004 21:56:01 +0000 (21:56 +0000)]
Add MD syscalls to sync the icache and to drain the write buffer.

Obtained from: NetBSD

19 years agoImplement pmap_growkernel() and pmap_extract_and_hold().
cognet [Thu, 23 Sep 2004 21:54:25 +0000 (21:54 +0000)]
Implement pmap_growkernel() and pmap_extract_and_hold().
Remove the cache state logic : right now, it provides more problems than it
helps.
Add helper functions for mapping devices while bootstrapping.
Reorganize the code a bit, and remove dead code.

Obtained from: NetBSD (partially)

19 years agoMap the kernel very early if needed.
cognet [Thu, 23 Sep 2004 21:49:10 +0000 (21:49 +0000)]
Map the kernel very early if needed.
Implement sigcode.

19 years agoBackout the hack to install mtree, newsyslog, and touch in the cloned
brooks [Thu, 23 Sep 2004 21:17:31 +0000 (21:17 +0000)]
Backout the hack to install mtree, newsyslog, and touch in the cloned
root in the previous commit.  We'll fix /etc/rc.d/var directly (someday).

19 years agoImplement terminating the worker thread when the driver is about to
joerg [Thu, 23 Sep 2004 21:12:21 +0000 (21:12 +0000)]
Implement terminating the worker thread when the driver is about to
be deregistered.

Not yet tested, since by now, GEOM doesn't want us to deregister.  PHK
wants to fix that RSN.

19 years agoAdd locking notes on the members of rusage. Note that these notes reflect
jhb [Thu, 23 Sep 2004 21:08:14 +0000 (21:08 +0000)]
Add locking notes on the members of rusage.  Note that these notes reflect
what is already present in the tree and apply to the rusage struct for
current process usage rather than child process usage.

19 years agoUpdate locking notes on several fields to reflect locking already in the
jhb [Thu, 23 Sep 2004 21:07:13 +0000 (21:07 +0000)]
Update locking notes on several fields to reflect locking already in the
tree:
- td_standin is (k + a) as it is only touched by either curthread or when
  a thread is being created.
- td_upcall is (k + j)
- td_sticks is (k) rather than the earlier (j) note.
- td_uuticks and td_usticks are both (k).
- td_intrval is (j)
- Neither kg_nextupcall or kg_upquantum seem to be locked and that seems
  to be on purpose, so mark those as (n).

19 years agoDon't try to protect td_sticks with sched_lock. It doesn't need it as it
jhb [Thu, 23 Sep 2004 21:03:58 +0000 (21:03 +0000)]
Don't try to protect td_sticks with sched_lock.  It doesn't need it as it
is only accessed by curthread.

19 years ago- Assert sched_lock in upcall_remove() since it is needed there and all
jhb [Thu, 23 Sep 2004 21:03:16 +0000 (21:03 +0000)]
- Assert sched_lock in upcall_remove() since it is needed there and all
  callers already lock it there.
- Lock sched_lock slightly earlier in kse_create() so that it covers
  kg_numupcalls.

19 years ago- Don't try to unlock Giant if single threading fails since we don't have
jhb [Thu, 23 Sep 2004 21:01:50 +0000 (21:01 +0000)]
- Don't try to unlock Giant if single threading fails since we don't have
  it locked.
- Unlock Giant before calling exit1() since exit1() does not require Giant.

19 years agoRe-add namedb. I misunderstood what Doug said about using ISC's
des [Thu, 23 Sep 2004 19:33:54 +0000 (19:33 +0000)]
Re-add namedb.  I misunderstood what Doug said about using ISC's
layout: he meant for binaries, not configuration files.

19 years agoRedefine a PTE as a 64-bit integral type instead of a struct of
marcel [Thu, 23 Sep 2004 18:37:36 +0000 (18:37 +0000)]
Redefine a PTE as a 64-bit integral type instead of a struct of
bit-fields. Unify the PTE defines accordingly and update all
uses.

19 years agoPrefer C99's __func__ over GCC's __FUNCTION__.
stefanf [Thu, 23 Sep 2004 18:25:46 +0000 (18:25 +0000)]
Prefer C99's __func__ over GCC's __FUNCTION__.

Approved by: alfred

19 years agoNew release notes:
hrs [Thu, 23 Sep 2004 16:59:14 +0000 (16:59 +0000)]
New release notes:
SA-04:14.

19 years agoSplit the ioctl function in control and slave side, this eliminated
phk [Thu, 23 Sep 2004 16:13:46 +0000 (16:13 +0000)]
Split the ioctl function in control and slave side, this eliminated
a troublesome devsw() call.

19 years agoInvalidate cache after changing pte entry.
rik [Thu, 23 Sep 2004 16:06:27 +0000 (16:06 +0000)]
Invalidate cache after changing pte entry.

Discussed with: jhp and njl
MFC after: 5 days

19 years agoHack around the fact that the current diskless scripts require some
brooks [Thu, 23 Sep 2004 15:52:42 +0000 (15:52 +0000)]
Hack around the fact that the current diskless scripts require some
binaries in /usr before /usr is mounted by copying those files to the
root.

Stop making devices.  devfs is manditory.

19 years agoSort the SEE ALSO list correctly. Update the document date.
brooks [Thu, 23 Sep 2004 15:26:01 +0000 (15:26 +0000)]
Sort the SEE ALSO list correctly.  Update the document date.

Reported by: ru

19 years agoEliminate DEV_STRATEGY() macro: call dev_strategy() directly.
phk [Thu, 23 Sep 2004 14:45:04 +0000 (14:45 +0000)]
Eliminate DEV_STRATEGY() macro: call dev_strategy() directly.

Make dev_strategy() handle errors and departing devices properly.

19 years agoIn fullpath_from_shell(), move the nologin detection before the cat | while
roam [Thu, 23 Sep 2004 13:09:42 +0000 (13:09 +0000)]
In fullpath_from_shell(), move the nologin detection before the cat | while
loop to avoid an incorrect display of the nologin path twice.

PR: 71786
Submitted by: Andrew Hayden <andrew.hayden@gmail.com>
Reviewed by: mtm
MFC after: 3 days

19 years agoProtect sockaddr_union definitions with a protecting define. This allows to
mlaier [Thu, 23 Sep 2004 12:44:40 +0000 (12:44 +0000)]
Protect sockaddr_union definitions with a protecting define. This allows to
build kernels with FAST_IPSEC and PF. This is the least disruptive fix.

PR: kern/71836
Reviewed by: bms, various mailing lists
MFC after: 3 days

19 years agoRemove bogus cdevsw frobbing code which tries to prevent double
phk [Thu, 23 Sep 2004 12:21:11 +0000 (12:21 +0000)]
Remove bogus cdevsw frobbing code which tries to prevent double
loading of modules.

MODULE_VERSION() should be used for this I belive.

19 years agoDo not use devsw() but si_devsw direction. This is still bogus but a
phk [Thu, 23 Sep 2004 12:19:24 +0000 (12:19 +0000)]
Do not use devsw() but si_devsw direction.  This is still bogus but a
fair bit less so.

19 years agoIntroduce new /boot/loader.conf variable: root_mount_delay.
pjd [Thu, 23 Sep 2004 10:13:18 +0000 (10:13 +0000)]
Introduce new /boot/loader.conf variable: root_mount_delay.
It can be used to delay mounting root partition to give a chance to GEOM
providers to show up.
Now, when there is no needed provider, vfs_rootmount() function will look
for it every second and if it can't be find in defined time, it'll ask
for root device name (before this change it was done immediately).

This will allow to boot from gmirror device in degraded mode.

19 years agoPer recent HEADSUP: Disconnect (old)vinum from the kernel build.
phk [Thu, 23 Sep 2004 08:34:50 +0000 (08:34 +0000)]
Per recent HEADSUP:  Disconnect (old)vinum from the kernel build.

Users should move to the new geom_vinum implementation instead.

The refcount logic which is being added to devices to enable safe module
unloading and the buf/vm work also in progress would require a major rework
of the (old)-vinum code to comply with the new semantics.

The actual source files will not be removed until I have coordinated with
the geomvinum people if they need any bits repo-copied etc.

19 years agoStyle fix.
des [Thu, 23 Sep 2004 08:00:07 +0000 (08:00 +0000)]
Style fix.

Submitted by: ru@

19 years agoMore remnants of BIND 8 to de-orbit.
des [Thu, 23 Sep 2004 07:54:01 +0000 (07:54 +0000)]
More remnants of BIND 8 to de-orbit.

Reminded by: ru@

19 years agoInstead of hardcoding the BIND version, deduce it from ${BIND_DIR}/version.
des [Thu, 23 Sep 2004 07:52:51 +0000 (07:52 +0000)]
Instead of hardcoding the BIND version, deduce it from ${BIND_DIR}/version.

19 years agolibpthread is always libpthread, even when it's libc_r.
des [Thu, 23 Sep 2004 07:37:19 +0000 (07:37 +0000)]
libpthread is always libpthread, even when it's libc_r.

Reminded by: ru@

19 years agoDe-orbit more remnants of BIND 8.
des [Thu, 23 Sep 2004 07:36:31 +0000 (07:36 +0000)]
De-orbit more remnants of BIND 8.

Prodded by: ru@

19 years agoBump version number after vendor import of 9.3.0.
des [Thu, 23 Sep 2004 07:21:02 +0000 (07:21 +0000)]
Bump version number after vendor import of 9.3.0.

19 years agoThis commit was generated by cvs2svn to compensate for changes in r135601,
des [Thu, 23 Sep 2004 07:18:50 +0000 (07:18 +0000)]
This commit was generated by cvs2svn to compensate for changes in r135601,
which included commits to RCS files with non-trunk default branches.

19 years agoVendor import of BIND 9.3.0.
des [Thu, 23 Sep 2004 07:18:50 +0000 (07:18 +0000)]
Vendor import of BIND 9.3.0.

19 years agoDo not refcount the cdevsw, but rather maintain a cdev->si_threadcount
phk [Thu, 23 Sep 2004 07:17:41 +0000 (07:17 +0000)]
Do not refcount the cdevsw, but rather maintain a cdev->si_threadcount
of the number of threads which are inside whatever is behind the
cdevsw for this particular cdev.

Make the device mutex visible through dev_lock() and dev_unlock().
We may want finer granularity later.

Replace spechash_mtx use with dev_lock()/dev_unlock().

19 years ago- Wrapped BIND 9 libraries defines into !defined(NO_BIND).
ru [Thu, 23 Sep 2004 07:13:36 +0000 (07:13 +0000)]
- Wrapped BIND 9 libraries defines into !defined(NO_BIND).

- Added forgotten LIBLWRES to fix missing dependencies
  revealed by "make checkdpadd".

19 years agoMFen 1.258
den [Thu, 23 Sep 2004 06:49:40 +0000 (06:49 +0000)]
MFen 1.258

MFC after: 2 days

19 years agoPAE seems to work for isp- at least under mimimal testing.
mjacob [Thu, 23 Sep 2004 05:26:19 +0000 (05:26 +0000)]
PAE seems to work for isp- at least under mimimal testing.

19 years agoPAE support changes that included at least some minimal actual testing
mjacob [Thu, 23 Sep 2004 05:25:22 +0000 (05:25 +0000)]
PAE support changes that included at least some minimal actual testing
with a kernel that booted.

19 years agoRefrence bsdlabel.8 and bsdlabel.5 rather then the obsolete disklabel.8
brooks [Thu, 23 Sep 2004 04:57:58 +0000 (04:57 +0000)]
Refrence bsdlabel.8 and bsdlabel.5 rather then the obsolete disklabel.8
and disklabel.5.  Refrencing bsdlabel.5 is somewhat bogus as it is not
connected to the build and is mostly unwritten at this point.

Reported by: Matthias Andree <matthias.andree at web.de>
PR: docs/72020

19 years agoLOCALSTATEDIR should be /var, since the BIND 9 source appends
dougb [Thu, 23 Sep 2004 04:46:56 +0000 (04:46 +0000)]
LOCALSTATEDIR should be /var, since the BIND 9 source appends
things like "run/named.pid" to it.

19 years agoAdd a knob 'daily_status_security_diff_flags' controlling the
jkoshy [Thu, 23 Sep 2004 02:00:52 +0000 (02:00 +0000)]
Add a knob 'daily_status_security_diff_flags' controlling the
format of the 'diff' output generated during periodic(8) scripts.

Submitted by: keramida (script changes)
Reviewed by: keramida (man page changes)

19 years agoRedefine a PTE as a 64-bit integral type instead of a struct of
marcel [Thu, 23 Sep 2004 00:05:20 +0000 (00:05 +0000)]
Redefine a PTE as a 64-bit integral type instead of a struct of
bit-fields. Unify the PTE defines accordingly and update all
uses.

19 years agos/u_int#_t/uint#_t/g
marcel [Wed, 22 Sep 2004 23:12:46 +0000 (23:12 +0000)]
s/u_int#_t/uint#_t/g

19 years agoSwitch order for mtx_unlock and cv_signal as (condvar(9)) sez:
mlaier [Wed, 22 Sep 2004 20:55:56 +0000 (20:55 +0000)]
Switch order for mtx_unlock and cv_signal as (condvar(9)) sez:

     A thread must hold mp while calling cv_signal(), cv_broadcast(), or
     cv_broadcastpri() even though it isn't passed as an argument.

and is right with this claim.

While here remove a "\" from the macro -> __inline conversion.

Found by: csjp
MFC after: 4 days

19 years agoBackout the last entry. It went to the wrong branch.
andre [Wed, 22 Sep 2004 20:42:30 +0000 (20:42 +0000)]
Backout the last entry.  It went to the wrong branch.

19 years agoThe offset argument to mmap(2) is not a pointer. Use 0 instead of NULL.
marcel [Wed, 22 Sep 2004 20:26:33 +0000 (20:26 +0000)]
The offset argument to mmap(2) is not a pointer. Use 0 instead of NULL.

19 years agoFor the atomic_{add|clear|set|subtract} family of inlines, return the
marcel [Wed, 22 Sep 2004 19:58:43 +0000 (19:58 +0000)]
For the atomic_{add|clear|set|subtract} family of inlines, return the
old or previous value instead of void. This is not as is documented
in atomic(9), but is API (and ABI) compatible and simply makes sense.
This feature will primarily be used for atomic PTE updates in PMAP/ng.

19 years agoMFp4: various style fixes, including
marcel [Wed, 22 Sep 2004 19:47:42 +0000 (19:47 +0000)]
MFp4: various style fixes, including
o  s/u_int/uint/g
o  s/#define<sp>/#define<tab>/g
o  indent macro definitions
o  Improve vertical spacing
o  Globally align line continuation character

19 years agoMFC: Make PFIL_HOOKS a permanent part of the kernel and remove the associated
andre [Wed, 22 Sep 2004 19:23:39 +0000 (19:23 +0000)]
MFC: Make PFIL_HOOKS a permanent part of the kernel and remove the associated
kernel compile option.

Approved by: re (scottl)

19 years agoRemove vestiges of libthr's signal mangling past. This fixes that last
mtm [Wed, 22 Sep 2004 18:51:16 +0000 (18:51 +0000)]
Remove vestiges of libthr's signal mangling past. This fixes that last
known problem with mysql on libthr: not being able to kill mysqld.

19 years agoPointy hat please!
phk [Wed, 22 Sep 2004 18:18:26 +0000 (18:18 +0000)]
Pointy hat please!

Refuse VCHR not VREG.

20 years agoPrefer C99's __func__ over GCC's __FUNCTION__.
stefanf [Wed, 22 Sep 2004 17:16:04 +0000 (17:16 +0000)]
Prefer C99's __func__ over GCC's __FUNCTION__.

20 years agoPrefer C99's __func__ over GCC's __FUNCTION__.
stefanf [Wed, 22 Sep 2004 16:56:49 +0000 (16:56 +0000)]
Prefer C99's __func__ over GCC's __FUNCTION__.

20 years agoThe SUSv3 function say that the affected functions MAY FAIL, if the
mtm [Wed, 22 Sep 2004 16:53:23 +0000 (16:53 +0000)]
The SUSv3 function say that the affected functions MAY FAIL, if the
specified mutex is invalid. In spec parlance 'MAY FAIL' means it's
up to the implementor. So, remove the check for NULL pointers for two
reasons:
1. A mutex may be invalid without necessarily being NULL.
2. If the pointer to the mutex is NULL core-dumping in the
   vicinity of the problem is much much much better than failing
   in some other part of the code (especially when the application
   doesn't check the return value of the function that you oh so
   helpfully set to EINVAL).

20 years agoAdd a couple of macros to extract the PCI slot (device) and function from
jhb [Wed, 22 Sep 2004 15:46:16 +0000 (15:46 +0000)]
Add a couple of macros to extract the PCI slot (device) and function from
an ACPI _ADR value and use that rather than inlining the same shifts and
masks everywhere.

20 years agoVarious small style fixes.
jhb [Wed, 22 Sep 2004 15:24:33 +0000 (15:24 +0000)]
Various small style fixes.

20 years agoAlways link with -lpthread, not -lc_r, because platforms that don't have
des [Wed, 22 Sep 2004 14:36:12 +0000 (14:36 +0000)]
Always link with -lpthread, not -lc_r, because platforms that don't have
full KSE support still have -lpthread as an alias for -lc_r.  The only
thing that's different is the name of the knob that turns it off.

Pointed out by: ru@

20 years agoRemove named-xfer, it does not exist in BIND 9.
trhodes [Wed, 22 Sep 2004 14:17:56 +0000 (14:17 +0000)]
Remove named-xfer, it does not exist in BIND 9.

20 years agoCall sbuf_finish() before sbuf_data() so as to not panic the system.
green [Wed, 22 Sep 2004 12:53:27 +0000 (12:53 +0000)]
Call sbuf_finish() before sbuf_data() so as to not panic the system.

20 years agoClean up and comment config.mk. Centralize more stuff. Bitch if
des [Wed, 22 Sep 2004 12:13:58 +0000 (12:13 +0000)]
Clean up and comment config.mk.  Centralize more stuff.  Bitch if
POSIX threads libraries are not available.  Add crypto support if
the crypto libraries are available.  Build dnssec-{keygen,signzone}
if crypto is available.

Submitted by: (in part) dougb@

20 years agoFix a LOR where ifconf() used copyout while holding a mutex. This LOR
brooks [Wed, 22 Sep 2004 08:59:41 +0000 (08:59 +0000)]
Fix a LOR where ifconf() used copyout while holding a mutex.  This LOR
was seen when configuring addresses on interfaces using ifconfig.  This
patch has been verified to work with over eight thousand addresses
assigned to an interface.

LOR id: 031

20 years agoAdd a temporary workaround to the panic on boot with hub attached and
imp [Wed, 22 Sep 2004 06:02:10 +0000 (06:02 +0000)]
Add a temporary workaround to the panic on boot with hub attached and
panic on hub detach bugs that have been reported.  This work around
detaches the device before deleting it.  This changes the detach order
from in-order to pre-order.  This avoids uhub's deleting the children
after its subdevs has been deleted.

This is only a workaround.  This leads to a strange condition in the
device tree where attached devices are children of detached ones.  I
really don't know what that's supposed to mean, but does violate my
sense of POLA.  Fortunately, the violation is short lived, which is
why I'm going ahead and committing the work around.

# We really need to consider life w/o the multiple nested layers of
# compatibility macros.  They make finding bugs like this *MUCH*
# harder.

Patch by: iadowse

MT5 before: next_release(5.3-BETA5) (unless someting better comes along)

20 years agoCorrect a long-standing error in _pmap_unwire_pte_hold() affecting
alc [Wed, 22 Sep 2004 05:01:48 +0000 (05:01 +0000)]
Correct a long-standing error in _pmap_unwire_pte_hold() affecting
multiprocessors.  Specifically, the error is conditioning the call to
pmap_invalidate_page() on whether the pmap is active on the current CPU.
This call must be unconditional.  Regardless of whether the pmap is active
on the CPU performing _pmap_unwire_pte_hold(), it could be active on another
CPU.  For example, a call to pmap_remove_all() by the page daemon could
result in a call to _pmap_unwire_pte_hold() with the pmap inactive on the
current CPU and active on another CPU.  In such circumstances, failing to
call pmap_invalidate_page() results in a stale TLB entry on the other CPU
that still maps the now deallocated page table page.  What happens next is
typically a mysterious panic in pmap_enter() by the other CPU, either
"pmap_enter: attempted pmap_enter on 4MB page" or "pmap_enter: pte vanished,
va: 0x%lx".  Both occur because the former page table page has been recycled
and allocated to a new purpose.  Consequently, it no longer contains zeroes.

See also Peter's i386/i386/pmap.c revision 1.448 and the related e-mail
thread last year.

Many thanks to the engineers at Sandvine for providing clear and concise
information until all of the pieces of the puzzle fell into place and
for testing an earlier patch.

MT5 Candidate

20 years agoRevert the last change..
julian [Wed, 22 Sep 2004 01:30:23 +0000 (01:30 +0000)]
Revert the last change..
Better to kill all other threads than to panic the system if 2 threads call
execve() at the same time. A better fix will be committed later.

Note that this only affects the case where the execve fails.

20 years agoMFi386: adapt rev 1.19 (debugger fixes)
peter [Wed, 22 Sep 2004 01:27:06 +0000 (01:27 +0000)]
MFi386: adapt rev 1.19 (debugger fixes)

20 years agocnw (Xircom pccard) is built on amd64 and there isn't an obvious reason
peter [Wed, 22 Sep 2004 01:24:42 +0000 (01:24 +0000)]
cnw (Xircom pccard) is built on amd64 and there isn't an obvious reason
that I can see as to why it shouldn't work.

20 years agoMinor sync-up with i386. Catch up on de-quoting and de-counting after
peter [Wed, 22 Sep 2004 01:04:54 +0000 (01:04 +0000)]
Minor sync-up with i386.  Catch up on de-quoting and de-counting after
config changes.

20 years agoMFi386: add ispfw (except using correct device<tab><tab>ispfw format,
peter [Wed, 22 Sep 2004 00:44:13 +0000 (00:44 +0000)]
MFi386: add ispfw (except using correct device<tab><tab>ispfw format,
<space><tab> is for the options line)

20 years agoSince "d" is an array of 32 bit values, it is more
csjp [Tue, 21 Sep 2004 22:12:43 +0000 (22:12 +0000)]
Since "d" is an array of 32 bit values, it is more
correct to change the cast from unsigned int to uint32_t.

Pointed out by: luigi

20 years agoHopefully fix alpha and sparc64 builds: on these architectures,
ru [Tue, 21 Sep 2004 21:47:05 +0000 (21:47 +0000)]
Hopefully fix alpha and sparc64 builds: on these architectures,
libpthread is provided by src/lib/libc_r.

Also, removed lib/bind from _generic_libs, "lib" will suffice.
Also, removed redundant lib/bind dependency on lib/libpthread
(as lib/bind is not in the _prebuild_libs, it's not needed).

Prodded by: trhodes@ reporting that des@ is on the flight

20 years agoIn a threaded process, don't kill off all the other threads until we have a
julian [Tue, 21 Sep 2004 21:05:13 +0000 (21:05 +0000)]
In a threaded process, don't kill off all the other threads until we have a
reasonable chance that the eceve() is going to succeeed. I.e.
wait until we've done the permission checks etc.

MFC after: 1 week

20 years agoImprove netsend timing logic in various ways:
rwatson [Tue, 21 Sep 2004 20:21:40 +0000 (20:21 +0000)]
Improve netsend timing logic in various ways:
- Centralize time comparison.
- Check clock resolution to make sure it has enough granularity to
  implement the desired wait interval.
- Keep track of how many times the timing loop has to spin waiting
  for the next send time; report statistics.
- Add commented out warning about deadlines being missed when
  spinning.
- Improve statistics reporting generally to provide a more useful
  summary of sender condition after a run.

20 years agoThis commit was manufactured by cvs2svn to create branch 'VENDOR-bind9'.
cvs2svn [Tue, 21 Sep 2004 19:01:49 +0000 (19:01 +0000)]
This commit was manufactured by cvs2svn to create branch 'VENDOR-bind9'.

20 years agoSwitch from BIND 8 to BIND 9.
des [Tue, 21 Sep 2004 19:01:48 +0000 (19:01 +0000)]
Switch from BIND 8 to BIND 9.

Submitted by: (in part) dougb@, trhodes@
Reviewed by: dougb@, trhodes@, re@
MFC after: 5 days

20 years agoInitialize the flags value properly. We used to do this in acpi_tz_all_off()
njl [Tue, 21 Sep 2004 18:39:10 +0000 (18:39 +0000)]
Initialize the flags value properly.  We used to do this in acpi_tz_all_off()
but that function has been removed.  This avoids a potential unnecessary
fan switch on boot.  Also remove some commented out code.

MFC after: 3 days

20 years agoUpdate copyright years.
des [Tue, 21 Sep 2004 18:35:21 +0000 (18:35 +0000)]
Update copyright years.

20 years agoDon't disable acpi in shutdown if we're panicing (panicstr != NULL). This
njl [Tue, 21 Sep 2004 17:19:38 +0000 (17:19 +0000)]
Don't disable acpi in shutdown if we're panicing (panicstr != NULL).  This
may help with double panics.

20 years agoCorrect the capitalization of "nVidia".
des [Tue, 21 Sep 2004 13:17:55 +0000 (13:17 +0000)]
Correct the capitalization of "nVidia".

20 years agoGroup equivalent flags together and delete the `aliases' section.
keramida [Tue, 21 Sep 2004 10:13:34 +0000 (10:13 +0000)]
Group equivalent flags together and delete the `aliases' section.

PR: docs/70856
Submitted by: Rostislav Krasny <rosti_bsd@yahoo.com>

20 years agoDe support opening device nodes on CD9660 filesystems. They are
phk [Tue, 21 Sep 2004 08:42:37 +0000 (08:42 +0000)]
De support opening device nodes on CD9660 filesystems.  They are
still visible, they can still be seen, but they cannot be opened.
Use DEVFS for that.

20 years agoIf a vnode has no v_rdev we cannot hope to answer FIODTYPE ioctl.
phk [Tue, 21 Sep 2004 08:33:05 +0000 (08:33 +0000)]
If a vnode has no v_rdev we cannot hope to answer FIODTYPE ioctl.

20 years agoAdd the sound device to the synopsis.
simon [Tue, 21 Sep 2004 07:01:32 +0000 (07:01 +0000)]
Add the sound device to the synopsis.

Noticed by: ru

20 years agoTrap invalid sector size 0 in disk probe, refusing to add such a
wes [Tue, 21 Sep 2004 06:46:44 +0000 (06:46 +0000)]
Trap invalid sector size 0 in disk probe, refusing to add such a
device to the list.  This prevents crashes on /0 errors in 'lsdev'
et al.

Reviewed-by: jhb@
MT5 after: RE approval

20 years agoSet default socket size for netreceive to 128k to reduce the chances
rwatson [Tue, 21 Sep 2004 03:10:28 +0000 (03:10 +0000)]
Set default socket size for netreceive to 128k to reduce the chances
of the buffer overflowing before netreceive can be scheduled to read
the packets from the socket.

20 years ago- Month and weekday names should begin with lowercase latter.
pjd [Mon, 20 Sep 2004 23:56:43 +0000 (23:56 +0000)]
- Month and weekday names should begin with lowercase latter.
- First part of long month names should use genitive.
- Use more proper shortcuts, leaving the first 3 letters is not always
  correct.

Submitted by: Bodek <bodek@blurp.org>

20 years agoAuto generate device listings for the snd_ess(4) driver.
simon [Mon, 20 Sep 2004 20:26:20 +0000 (20:26 +0000)]
Auto generate device listings for the snd_ess(4) driver.

MFC after: 3 days

20 years agoConnect snd_ess(4) to the build.
simon [Mon, 20 Sep 2004 20:21:47 +0000 (20:21 +0000)]
Connect snd_ess(4) to the build.

20 years agoAdd manual page for snd_ess(4).
simon [Mon, 20 Sep 2004 20:05:26 +0000 (20:05 +0000)]
Add manual page for snd_ess(4).

Submitted by: Atte Peltomaki <koston@iki.fi>
MFC after: 3 days

20 years agoForce a redraw if all dists are selected so the checklist is updated.
jhb [Mon, 20 Sep 2004 19:24:15 +0000 (19:24 +0000)]
Force a redraw if all dists are selected so the checklist is updated.

Submitted by: Rostislav Krasny rosti_bsd at yahoo dot com
MFC after: 3 days

20 years ago- Add support for "paging" in stack trace output. That is, when you do
jhb [Mon, 20 Sep 2004 19:05:32 +0000 (19:05 +0000)]
- Add support for "paging" in stack trace output.  That is, when you do
  a stack trace from ddb, the output will pause with a '--More--' prompt
  every 18 lines.  If you hit Enter, it will print another line and prompt
  again.  If you hit space it will output another page and then prompt.
  If you hit 'q' or 'x' it will abort the rest of the stack trace.
- Fix the sparc64 userland stack trace to honor the total count of lines
  to print.  This is useful if your trace happens to walk back onto
  0xdeadc0de and gets stuck in an endless loop.

MFC after: 1 month
Tested on: i386, alpha, sparc64

20 years agoRemove unused macro.
jhb [Mon, 20 Sep 2004 19:01:44 +0000 (19:01 +0000)]
Remove unused macro.

20 years agoAdd lib/tests.
des [Mon, 20 Sep 2004 18:36:02 +0000 (18:36 +0000)]
Add lib/tests.

20 years agoDocument the AUTO setting for dumpdev.
des [Mon, 20 Sep 2004 17:49:57 +0000 (17:49 +0000)]
Document the AUTO setting for dumpdev.

MFC after: 4 weeks

20 years agoIf $dumpdev is set to AUTO, use the first suitable swap partition listed
des [Mon, 20 Sep 2004 17:48:45 +0000 (17:48 +0000)]
If $dumpdev is set to AUTO, use the first suitable swap partition listed
in /etc/fstab, or print an error message if no suitable device was found.

MFC after: 4 weeks

20 years agoForce commit to provider more detailed info about this change.
pjd [Mon, 20 Sep 2004 17:44:41 +0000 (17:44 +0000)]
Force commit to provider more detailed info about this change.

There is no need to skip providers with 0 sectorsize in taste routine,
it is now forced by GEOM.
Actually, it can even cause some problems, because GEOM requires sectorsize
to be greater than 0 on first access, not on provider creation, so we can
skip valid providers by doing this check in taste method.

Requested by: scottl

20 years agoThis is not needed anymore, it is forced in GEOM now.
pjd [Mon, 20 Sep 2004 17:26:25 +0000 (17:26 +0000)]
This is not needed anymore, it is forced in GEOM now.
Actually, it can even cause some problems, because GEOM requires sectorsize
to be more than 0 on first access, not on provider creation, so we can skip
valid providers by doing this check here.

Reported by: Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Sven Willenberger <sven@dmv.com>

20 years agoDon't forget to check defined() before testing the value.
des [Mon, 20 Sep 2004 15:22:57 +0000 (15:22 +0000)]
Don't forget to check defined() before testing the value.

20 years agoMake this use a standard bsd.subdir.mk.
ru [Mon, 20 Sep 2004 14:04:00 +0000 (14:04 +0000)]
Make this use a standard bsd.subdir.mk.

20 years agoMerged from sys/dev/sio/sio.c: more tty related changes.
nyan [Mon, 20 Sep 2004 14:01:38 +0000 (14:01 +0000)]
Merged from sys/dev/sio/sio.c: more tty related changes.

20 years agoMFpc98: Check a pointer is NULL, remove unused variable.
nyan [Mon, 20 Sep 2004 13:55:26 +0000 (13:55 +0000)]
MFpc98: Check a pointer is NULL, remove unused variable.