]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoAlways assert that the passed in lock is the same as the saved lock in the
jhb [Tue, 2 Mar 2004 15:02:08 +0000 (15:02 +0000)]
Always assert that the passed in lock is the same as the saved lock in the
sleep queue now that the one abnormal case has been fixed.

20 years agoCorrect handling of PDROP in msleep() to just skip the mtx_lock() rather
jhb [Tue, 2 Mar 2004 14:58:33 +0000 (14:58 +0000)]
Correct handling of PDROP in msleep() to just skip the mtx_lock() rather
than clear the lock pointer so that sleepq_add() still gets the correct
lock pointer and doesn't bogusly trip an assertion.

20 years agoTwo minor follow-ups on the MT_TAG removal:
mlaier [Tue, 2 Mar 2004 14:37:23 +0000 (14:37 +0000)]
Two minor follow-ups on the MT_TAG removal:
ifp is now passed explicitly to ether_demux; no need to look it up again.
Make mtag a global var in ip_input.

Noticed by: rwatson
Approved by: bms(mentor)

20 years agoProtect shell expansions.
ru [Tue, 2 Mar 2004 14:32:23 +0000 (14:32 +0000)]
Protect shell expansions.

20 years agoElf_Phdr.p_type 7 is "PT_TLS".
jake [Tue, 2 Mar 2004 14:06:27 +0000 (14:06 +0000)]
Elf_Phdr.p_type 7 is "PT_TLS".

20 years agoReport the original command on failures that causes auto sense.
sos [Tue, 2 Mar 2004 14:05:12 +0000 (14:05 +0000)]
Report the original command on failures that causes auto sense.
Keep the ATA_R_QUIET flag if set during autosense.

20 years agoFix getting progress data for some device in yet another way.
sos [Tue, 2 Mar 2004 14:03:43 +0000 (14:03 +0000)]
Fix getting progress data for some device in yet another way.
Take advantage of the new autosense logic.

20 years agoModify contigmalloc1() so that the free page queues lock is not held when
alc [Tue, 2 Mar 2004 08:25:58 +0000 (08:25 +0000)]
Modify contigmalloc1() so that the free page queues lock is not held when
vm_page_free() is called.  The problem with holding this lock is that it is
a spin lock and vm_page_free() may attempt the acquisition of a different
default-type lock.

20 years agoIncrease kernel VA from 256Mb to 512Mb by shifting the segment used
grehan [Tue, 2 Mar 2004 06:49:21 +0000 (06:49 +0000)]
Increase kernel VA from 256Mb to 512Mb by shifting the segment used
for user copyinout down to 12, and keeping segments 13/14 for
kernel VA.

It would be nice to have more available, but segments lower than
this are reserved for either memory or 1:1 mapped device i/o,
and seg 15 is OpenFirmware ROM. Also, the effort to keep OpenFirmware
available for callbacks limits the use of VA-mapped segments.
Fortunately UMA_MD_SMALL_ALLOC takes away a lot of VM pressure.

Obtained from:  NetBSD

20 years agoHook libthr to the build for PowerPC
grehan [Tue, 2 Mar 2004 06:26:37 +0000 (06:26 +0000)]
Hook libthr to the build for PowerPC

20 years agolibthr powerpc support.
grehan [Tue, 2 Mar 2004 06:25:20 +0000 (06:25 +0000)]
libthr powerpc support.

Submitted by:  Suleiman Souhlal <refugee@segfaulted.com>
Tested with: most libpthread tests, Apache 'worker' MDM

20 years agomakecontext lib call.
grehan [Tue, 2 Mar 2004 06:22:24 +0000 (06:22 +0000)]
makecontext lib call.

Submitted by: Suleiman Souhlal <refugee@segfaulted.com>

20 years agoKernel changes for libthr (and probably libpthread).
grehan [Tue, 2 Mar 2004 06:13:09 +0000 (06:13 +0000)]
Kernel changes for libthr (and probably libpthread).

include/ucontext.h
 - remove trapframe and switch over to 'generic' description of machine
   state. Include version field to help with future modifications.
   Include floating point and altivec state, and hopefully align
   correctly

powerpc/copyinout.c
 - fill out casuptr() sync primitive, required by kern_umtx.c

powerpc/machdep.c
 - shifted proc0/thread0/pcpu setup to before cninit, since
   syscons -> make_dev -> devlock requires a valid curthread
 - implemented get_mcontext/set_mcontext
 - recast sendsig/sigreturn to use get/set_mcontext and new
   ucontext struct. floating point now saved
 - TODO: save/restore altivec state

powerpc/vm_machdep.c
 - implemented cpu_thread_setup/cpu_set_upcall/cpu_set_upcall_kse
 - eliminated trailing whitespace

Submitted by:  Suleiman Souhlal <refugee@segfaulted.com>, ucontext by grehan

20 years agoWhen we get a packet error, move on, don't go into an infinite loop
julian [Tue, 2 Mar 2004 05:43:42 +0000 (05:43 +0000)]
When we get a packet error, move on, don't go into an infinite loop
looking at it.

fixes at least one cause of "hanging" due to this driver.

20 years agoAdd CTLTYPE_QUAD to the list of types for which we don't want an empty
dd [Tue, 2 Mar 2004 05:42:52 +0000 (05:42 +0000)]
Add CTLTYPE_QUAD to the list of types for which we don't want an empty
value.  All the other numeric types are doing it . . .

20 years agoWhitespace changes to match rest of file..
julian [Tue, 2 Mar 2004 01:46:34 +0000 (01:46 +0000)]
Whitespace changes to match rest of file..

20 years agoCheck for TDF_SINTR before calling sleepq_abort() as there is a narrow
jhb [Mon, 1 Mar 2004 23:07:58 +0000 (23:07 +0000)]
Check for TDF_SINTR before calling sleepq_abort() as there is a narrow
race in between sleepq_add() and sleepq_catch_signals() in that setting
td_wchan and TDF_SINTR is not atomic to sched_lock but only to the sleepq
lock.  This band-aid will stop assertion failures, but there is perhaps a
larger problem with the sleepq_add/sleepq_catch_signals race that I am not
sure how to solve.  For the signals case the race is harmless because we
always call cursig() after setting TDF_SINTR.  However, KSE doesn't do
anything in sleepq_catch_signals() to check that this race was lost, so I
am unsure if this race is harmful for this specific abort.

20 years ago- Fix typo.
simon [Mon, 1 Mar 2004 22:58:07 +0000 (22:58 +0000)]
- Fix typo.
- Use .Fx when I'm here anyway.

PR: docs/63622
Submitted by: Andrew Boothman <andrew@mux.org.uk>

20 years agoRename NET_PICKUP_GIANT() to NET_LOCK_GIANT(), and NET_DROP_GIANT()
rwatson [Mon, 1 Mar 2004 22:37:01 +0000 (22:37 +0000)]
Rename NET_PICKUP_GIANT() to NET_LOCK_GIANT(), and NET_DROP_GIANT()
to NET_UNLOCK_GIANT().  While they are used in similar ways, the
semantics are quite different -- NET_LOCK_GIANT() and NET_UNLOCK_GIANT()
directly wrap mutex lock and unlock operations, whereas drop/pickup
special case the handling of Giant recursion.  Add a comment saying
as much.

Add NET_ASSERT_GIANT(), which conditionally asserts Giant based
on the value of debug_mpsafenet.

20 years agoMove the "fast" but unused eventhandlers to pasture. They're in the
phk [Mon, 1 Mar 2004 22:36:58 +0000 (22:36 +0000)]
Move the "fast" but unused eventhandlers to pasture.  They're in the
CVS repo should we ever need them.

Objected to by:

20 years agoAdd command line option for chrootdir, all pkg_add(8) operations will be
kensmith [Mon, 1 Mar 2004 21:58:21 +0000 (21:58 +0000)]
Add command line option for chrootdir, all pkg_add(8) operations will be
done inside of chroot(2) to chrootdir.  Added to help with sysinstall(8)
support of install to alternate root but possibly useful for setting up
jails, etc.

No objection from: portmgr@
Style(9) abuse due to: entire program violates style(9)
Approved by: rwatson (mentor)

20 years agoThis is an initial whitespace cleanup commit, new content to follow.
kensmith [Mon, 1 Mar 2004 21:50:49 +0000 (21:50 +0000)]
This is an initial whitespace cleanup commit, new content to follow.
Adding hard line breaks at the end of sentences.

Approved by: rwatson (mentor)

20 years agoChange another pointer name that was missed in the previous commit.
scottl [Mon, 1 Mar 2004 21:45:49 +0000 (21:45 +0000)]
Change another pointer name that was missed in the previous commit.

Spotted by: njl

20 years agoCheck and free the actual pointer the was used in a malloc instead of
scottl [Mon, 1 Mar 2004 21:27:14 +0000 (21:27 +0000)]
Check and free the actual pointer the was used in a malloc instead of
checking and freeing a different pointer that may or may not have been
assigned the same value.  This should fix panics under load that were
recently reported.

20 years agoNote that the D-Link 530-TXS also works with the ste(4) driver.
simon [Mon, 1 Mar 2004 20:52:54 +0000 (20:52 +0000)]
Note that the D-Link 530-TXS also works with the ste(4) driver.

PR: docs/63600
Submitted by: Christopher Nehren <apeiron@comcast.net>

20 years agoFixes to output of `ls -lh` for certain file sizes:
cperciva [Mon, 1 Mar 2004 19:25:27 +0000 (19:25 +0000)]
Fixes to output of `ls -lh` for certain file sizes:
1. Sizes in the range 1000 -- 1023 units require four characters width
   for the integer; increase the field width to accomodate this.
2. Sizes in the range 9.95 -- 10 units were being displayed as "10.0"
   units; adjust the logic to fix this, and now that we've got an extra
   character of field width, print fractional units if the size is less
   than 99.95 units.
3. Don't display sub-byte precision.

This should mean that the following sizes are displayed:
    0B .. 1023B
  1.0U ..  9.9U
 10.0U .. 99.9U
  100U .. 1023U
for values of U in "KMGTPE".

PR: bin/63547
Pointy hat to: cperciva
Approved by: rwatson (mentor)

20 years agoThe previous commit fixed -current on alpha for machines with
kensmith [Mon, 1 Mar 2004 19:19:15 +0000 (19:19 +0000)]
The previous commit fixed -current on alpha for machines with
serial console connections but not graphical consoles.  This fixes the
graphical console machines.  It leaves the initial promcons console
driver in place until a bit later in the boot sequence, delaying the
switch to the device drivers more appropriate for the machine's real
console setup.  Note we still need the delayed make_dev() for promcons,
it does not have a proper bus interface so unlike other console drivers
it will not be found later during normal device discovery.

Tested by: sepotvin <at> videotron <dot> ca
Root cause explained by: grehan (-current)
Approved by: rwatson (mentor)

20 years agofix -O0 compilation without INET6.
ume [Mon, 1 Mar 2004 19:10:31 +0000 (19:10 +0000)]
fix -O0 compilation without INET6.

Pointed out by: ru

20 years agoWhile I'm here, add linprocfs (but not pseudofs, since it is no use on
des [Mon, 1 Mar 2004 18:42:16 +0000 (18:42 +0000)]
While I'm here, add linprocfs (but not pseudofs, since it is no use on
its own)

20 years agoAdd acpi_video_load (default NO) in the ACPI section
des [Mon, 1 Mar 2004 18:13:00 +0000 (18:13 +0000)]
Add acpi_video_load (default NO) in the ACPI section

20 years agoImprove GNU compatibility in several places, use internal GNU_COMPATIBLE
ache [Mon, 1 Mar 2004 17:57:05 +0000 (17:57 +0000)]
Improve GNU compatibility in several places, use internal GNU_COMPATIBLE
define for it.
Don't catch POSIXLY_CORRECT env. into static variable, it can be changed
on the fly by program.
Use P1003.2 standartized illoptchar[]

20 years agoRemoved extraneous parentheses.
ru [Mon, 1 Mar 2004 17:47:38 +0000 (17:47 +0000)]
Removed extraneous parentheses.

20 years agoRemoved unused fields.
pjd [Mon, 1 Mar 2004 17:33:11 +0000 (17:33 +0000)]
Removed unused fields.

20 years agoWe don't need d_length field.
pjd [Mon, 1 Mar 2004 17:32:48 +0000 (17:32 +0000)]
We don't need d_length field.

20 years agoRestore the sorting broken in rev. 1.256.
ru [Mon, 1 Mar 2004 17:26:39 +0000 (17:26 +0000)]
Restore the sorting broken in rev. 1.256.

20 years agoNetgraph node type for IEEE 802.1Q VLAN tagging.
ru [Mon, 1 Mar 2004 17:22:16 +0000 (17:22 +0000)]
Netgraph node type for IEEE 802.1Q VLAN tagging.

20 years agoUpdate for reality.
obrien [Mon, 1 Mar 2004 16:34:39 +0000 (16:34 +0000)]
Update for reality.

20 years ago- reject incoming packets to an interface-local multicast address from
ume [Mon, 1 Mar 2004 15:34:29 +0000 (15:34 +0000)]
- reject incoming packets to an interface-local multicast address from
  the wire.
- added a generic scope check, and removed checks for loopback src/dst
  addresses.

Obtained from: KAME

20 years agoRemember to mtx_destroy mutexes.
sos [Mon, 1 Mar 2004 13:17:07 +0000 (13:17 +0000)]
Remember to mtx_destroy mutexes.

20 years agoComment out things related to getopt() replacement we not use
ache [Mon, 1 Mar 2004 10:59:23 +0000 (10:59 +0000)]
Comment out things related to getopt() replacement we not use

20 years agoChange "-"-started options when POSIX_CORRECTLY is set handling
ache [Mon, 1 Mar 2004 10:12:45 +0000 (10:12 +0000)]
Change "-"-started options when POSIX_CORRECTLY is set handling
in favour of GNU instead of NetBSD, because configure's use us and
expect GNU.

20 years agoChange "-"-started options when POSIX_CORRECTLY is set handling
ache [Mon, 1 Mar 2004 10:03:34 +0000 (10:03 +0000)]
Change "-"-started options when POSIX_CORRECTLY is set handling
in favour of GNU instead of NetBSD, because configure's use us and
expect GNU.

20 years agoMerge conflicts, upgrade
ache [Mon, 1 Mar 2004 08:37:20 +0000 (08:37 +0000)]
Merge conflicts, upgrade

20 years agoThis commit was generated by cvs2svn to compensate for changes in r126432,
ache [Mon, 1 Mar 2004 08:24:49 +0000 (08:24 +0000)]
This commit was generated by cvs2svn to compensate for changes in r126432,
which included commits to RCS files with non-trunk default branches.

20 years agoTrimmed grep 2.4.2
ache [Mon, 1 Mar 2004 08:24:49 +0000 (08:24 +0000)]
Trimmed grep 2.4.2

20 years agoHook acpi_video up to the build.
njl [Mon, 1 Mar 2004 08:15:26 +0000 (08:15 +0000)]
Hook acpi_video up to the build.

20 years agoAdd the ACPI standard video extensions driver. I've done some style cleanup
njl [Mon, 1 Mar 2004 08:12:56 +0000 (08:12 +0000)]
Add the ACPI standard video extensions driver.  I've done some style cleanup
but a bit more reamins to be done.  For now, it is usable.

Submitted by: Taku YAMAMOTO <taku@cent.saitama-u.ac.jp>

20 years agoAdd the ACPI standard video extensions driver. I've done some style cleanup
njl [Mon, 1 Mar 2004 08:12:55 +0000 (08:12 +0000)]
Add the ACPI standard video extensions driver.  I've done some style cleanup
but a bit more reamins to be done.  For now, it is usable.

PR:
Submitted by: Taku YAMAMOTO <taku@cent.saitama-u.ac.jp>
Reviewed by:
Approved by:
Obtained from:
MFC after:

20 years agoFixed some insertion sort errors for usb devcies (mainly for serial ones).
bde [Mon, 1 Mar 2004 07:51:51 +0000 (07:51 +0000)]
Fixed some insertion sort errors for usb devcies (mainly for serial ones).

20 years agoAdd a manual page for the umct(4) driver.
scottl [Mon, 1 Mar 2004 03:49:05 +0000 (03:49 +0000)]
Add a manual page for the umct(4) driver.

20 years agoRename dup_sockaddr() to sodupsockaddr() for consistency with other
rwatson [Mon, 1 Mar 2004 03:14:23 +0000 (03:14 +0000)]
Rename dup_sockaddr() to sodupsockaddr() for consistency with other
functions in kern_socket.c.

Rename the "canwait" field to "mflags" and pass M_WAITOK and M_NOWAIT
in from the caller context rather than "1" or "0".

Correct mflags pass into mac_init_socket() from previous commit to not
include M_ZERO.

Submitted by: sam

20 years agoPich up a do {} while(0) cleanup by phk that was discarded accidentally in
kan [Mon, 1 Mar 2004 02:44:33 +0000 (02:44 +0000)]
Pich up a do {} while(0) cleanup by phk that was discarded accidentally in
previous revision.

Submitted by: alc

20 years agoadd driver for BWCT console management serials
ticso [Mon, 1 Mar 2004 02:34:49 +0000 (02:34 +0000)]
add driver for BWCT console management serials

20 years agoConvert the other use of flags to mflags in soalloc().
scottl [Mon, 1 Mar 2004 01:14:28 +0000 (01:14 +0000)]
Convert the other use of flags to mflags in soalloc().

20 years agoBack out the "clean_environment()" function from libutil.
kientzle [Sun, 29 Feb 2004 22:13:28 +0000 (22:13 +0000)]
Back out the "clean_environment()" function from libutil.

Further contemplation has convinced me that this was
not going to really solve the problem of environment-poisoning
without raising serious administrative headaches.  There
must be a better way...

20 years agoAdd the -e (mail presence test), -H (header summary mode), and -F
mikeh [Sun, 29 Feb 2004 20:44:44 +0000 (20:44 +0000)]
Add the -e (mail presence test), -H (header summary mode), and -F
(message save as first recipient) options for standards
conformance.

Submitted by: Wartan Hachaturow <wart@tepkom.ru> (with some changes)
PR: standards/61934

20 years agoo Typo: Ternal -> Thermal.
maxim [Sun, 29 Feb 2004 18:30:35 +0000 (18:30 +0000)]
o Typo: Ternal -> Thermal.

20 years agoModify soalloc() API so that it accepts a malloc flags argument rather
rwatson [Sun, 29 Feb 2004 17:54:05 +0000 (17:54 +0000)]
Modify soalloc() API so that it accepts a malloc flags argument rather
than a "waitok" argument.  Callers now passing M_WAITOK or M_NOWAIT
rather than 0 or 1.  This simplifies the soalloc() logic, and also
makes the waiting behavior of soalloc() more clear in the calling
context.

Submitted by: sam

20 years agoLoudly announce WITNESS and DIAGNOSTIC options and warn about reduced
phk [Sun, 29 Feb 2004 16:56:54 +0000 (16:56 +0000)]
Loudly announce WITNESS and DIAGNOSTIC options and warn about reduced
performance.

20 years agoRemove __inline keyword from functions that can't be inlined according to
mlaier [Sun, 29 Feb 2004 16:34:43 +0000 (16:34 +0000)]
Remove __inline keyword from functions that can't be inlined according to
LINT. This fixes LINT compliation for now, but needs to be revised.
Changes do not affect the objects.

Approved by: bms(mentor)

20 years agoUse DEV_BSIZE byte sectors instead of PAGE_SIZE byte sectors for
cperciva [Sun, 29 Feb 2004 15:58:54 +0000 (15:58 +0000)]
Use DEV_BSIZE byte sectors instead of PAGE_SIZE byte sectors for
swap-backed memory disks.  This reduces filesystem allocation overhead
and makes swap-backed memory disks compatible with broken code (dd,
for example) which expects to see 512 byte sectors.  The size of a
swap-backed memory disk must still be a multiple of the page size.

When performing page-aligned operations, this change has zero
performance impact.

Reviewed by: phk
Approved by: rwatson (mentor)

20 years agoRevert previous change. The effect of -w or -W option is described in
charnier [Sun, 29 Feb 2004 15:49:26 +0000 (15:49 +0000)]
Revert previous change. The effect of -w or -W option is described in
another paragraph.
Obtained from: David Malone <dwmalone@maths.tcd.ie>

20 years agoDefine BPFD_LOCK_ASSERT() to assert the BPF descriptor lock.
rwatson [Sun, 29 Feb 2004 15:33:56 +0000 (15:33 +0000)]
Define BPFD_LOCK_ASSERT() to assert the BPF descriptor lock.

Assert the BPF descriptor lock in the MAC calls referencing live
BPF descriptors.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, McAfee Research

20 years agoGrab Giant after MAC processing on outgoing packets being sent via
rwatson [Sun, 29 Feb 2004 15:32:33 +0000 (15:32 +0000)]
Grab Giant after MAC processing on outgoing packets being sent via
BPF.  Grab the BPF descriptor lock before entering MAC since the MAC
Framework references BPF descriptor fields, including the BPF
descriptor label.

Submitted by: sam

20 years agoAdded Xref to env(1).
schweikh [Sun, 29 Feb 2004 13:10:09 +0000 (13:10 +0000)]
Added Xref to env(1).

20 years agoAdd amd64 to universe.
johan [Sun, 29 Feb 2004 13:07:05 +0000 (13:07 +0000)]
Add amd64 to universe.

Approved by: peter

20 years agoFix grammar bogon.
schweikh [Sun, 29 Feb 2004 12:52:21 +0000 (12:52 +0000)]
Fix grammar bogon.

20 years agoMove boottime from <sys/kernel.h> to <sys/time.h> where it belongs.
phk [Sun, 29 Feb 2004 10:55:15 +0000 (10:55 +0000)]
Move boottime from <sys/kernel.h> to <sys/time.h> where it belongs.

20 years agoRemove unused FDNUMTOUNIT() macro
phk [Sun, 29 Feb 2004 10:21:40 +0000 (10:21 +0000)]
Remove unused FDNUMTOUNIT() macro

20 years agoGive DDB a "watchdog" command which disables all watchdogs.
phk [Sun, 29 Feb 2004 09:55:32 +0000 (09:55 +0000)]
Give DDB a "watchdog" command which disables all watchdogs.

20 years agoMake rmuser now also remove ipc resources. Also, fix a few minor
schweikh [Sun, 29 Feb 2004 09:54:15 +0000 (09:54 +0000)]
Make rmuser now also remove ipc resources. Also, fix a few minor
shell style problems (superfluous backslashes at EOL).

PR: 55980
Submitted by: Chris S.J.Peron <maneo@bsdpro.com>
MFC after: 2 weeks

20 years agoRearrange sense_key and sense_data to get alignment right.
sos [Sun, 29 Feb 2004 09:35:29 +0000 (09:35 +0000)]
Rearrange sense_key and sense_data to get alignment right.

Submitted by: Marcel

20 years agoAll three of these drivers abused cv_waitq_empty in the same way by spinning
scottl [Sun, 29 Feb 2004 09:26:01 +0000 (09:26 +0000)]
All three of these drivers abused cv_waitq_empty in the same way by spinning
on it in hopes of making sure that the waitq was empty before going on.
This wasn't needed and probably never would have worked as intended.  Now
that cv_waitq_empty() and friends are gone, the code in these drivers that
spins on it can go away too.  This should unbreak LINT.

Discussed with: kan

20 years agoFixed style bugs in previous commit (.ifndef instead of .if defined(),
bde [Sun, 29 Feb 2004 06:39:11 +0000 (06:39 +0000)]
Fixed style bugs in previous commit (.ifndef instead of .if defined(),
and tab lossage).

Garbage-collected NEED_LIBNAMES.

20 years agoBring to working PIO state.
grehan [Sun, 29 Feb 2004 06:01:16 +0000 (06:01 +0000)]
Bring to working PIO state.
 - use correct rid when allocating PCI mem resource
 - ATA taskfile registers are indeed spaced 0x10 apart just like
 the Macio ATA cell. Adjust offsets in ATA channel struct.

Tested by:  Suleiman Souhlal <ssouhlal@vt.edu>

20 years agoModified release notes: More ports affected by thread-safe resolver
bmah [Sun, 29 Feb 2004 02:20:21 +0000 (02:20 +0000)]
Modified release notes:  More ports affected by thread-safe resolver
ABI change [1], ACPI 20040220.

Submitted by: marcus [1]

20 years agoFurther shuffle runcom ordering so that netif does not start before
green [Sun, 29 Feb 2004 01:42:48 +0000 (01:42 +0000)]
Further shuffle runcom ordering so that netif does not start before
ipfw, but ipfw and ipfilter do start before dhclient.

20 years agouteval.c gained a warning (cast discards qualifiers from pointer target
marcel [Sat, 28 Feb 2004 23:04:45 +0000 (23:04 +0000)]
uteval.c gained a warning (cast discards qualifiers from pointer target
type) after vendor import of ACPICA 20040220. Add nowerror.

20 years agoAdd MLINKs for MALLOC_DEFINE and MALLOC_DECLARE.
le [Sat, 28 Feb 2004 23:01:20 +0000 (23:01 +0000)]
Add MLINKs for MALLOC_DEFINE and MALLOC_DECLARE.

Approved by:     grog (mentor)

20 years agoAdded errata items: SA-04:03, __FreeBSD_version glitch in
bmah [Sat, 28 Feb 2004 22:49:15 +0000 (22:49 +0000)]
Added errata items:  SA-04:03, __FreeBSD_version glitch in
porters-handbook for 5.2.1 docset.

Made this document apply to 5.2.1-RELEASE as well by noting this in
the abstract and noting errata items that were fixed/addressed in
5.2.1.

20 years agoCall _INI on Thermal Zones as well as devices.
njl [Sat, 28 Feb 2004 22:43:18 +0000 (22:43 +0000)]
Call _INI on Thermal Zones as well as devices.

20 years agoAdd support for the watchdog in Geode SC1100 which is used in embedded
phk [Sat, 28 Feb 2004 22:33:28 +0000 (22:33 +0000)]
Add support for the watchdog in Geode SC1100 which is used in embedded
systems like the Soekris NET4801

20 years agoMake sure to disable the watchdog if we cannot honour the timeout.
phk [Sat, 28 Feb 2004 22:01:19 +0000 (22:01 +0000)]
Make sure to disable the watchdog if we cannot honour the timeout.

20 years agoAdd skeleton build dirs for pf userland:
mlaier [Sat, 28 Feb 2004 21:50:50 +0000 (21:50 +0000)]
Add skeleton build dirs for pf userland:
 libexec/ftp-proxy - ftp proxy for pf
 sbin/pfctl - equivalent to sbin/ipf
 sbin/pflogd - deamon logging packets via if_pflog in pcap format
 usr.sbin/authpf - authentification shell to modify pf rulesets

Bring along some altq headers used to satisfy pfctl/authpf compile. This
helps to keep the diff down and will make it easy to have a altq-patchset
use the full powers of pf.

Also make sure that the pf headers are installed.

This does not link anything to the build. There will be a NO_PF switch for
make.conf once pf userland is linked.

Approved by: bms(mentor)

20 years agoo Now when the Cold War is ended we can confess our pppd(8) supports
maxim [Sat, 28 Feb 2004 21:32:40 +0000 (21:32 +0000)]
o Now when the Cold War is ended we can confess our pppd(8) supports
CBCP (Call Back Configuration Protocol).  Document 'callback phone_number'.

Obtained from: NetBSD (pppd/pppd.8, rev. 1.26)
MFC after: 3 weeks

20 years agoRename the WATCHDOG option to SW_WATCHDOG and make it use the
phk [Sat, 28 Feb 2004 20:56:35 +0000 (20:56 +0000)]
Rename the WATCHDOG option to SW_WATCHDOG and make it use the
generic watchdoc(9) interface.

Make watchdogd(8) perform as watchdog(8) as well, and make it
possible to specify a check command to run, timeout and sleep
periods.

Update watchdog(4) to talk about the generic interface and add
new watchdog(8) page.

20 years agoStrip out new, unused file acnetbsd.h
njl [Sat, 28 Feb 2004 20:56:25 +0000 (20:56 +0000)]
Strip out new, unused file acnetbsd.h

20 years agoThis commit was generated by cvs2svn to compensate for changes in r126380,
njl [Sat, 28 Feb 2004 20:42:10 +0000 (20:42 +0000)]
This commit was generated by cvs2svn to compensate for changes in r126380,
which included commits to RCS files with non-trunk default branches.

20 years agoFix an off-by-one in the compiler path. Originally from iwasaki-san's
njl [Sat, 28 Feb 2004 20:42:10 +0000 (20:42 +0000)]
Fix an off-by-one in the compiler path.  Originally from iwasaki-san's
patches for the pmtools port.  This change has been submitted to Intel.

20 years agoLocal change: emulate a ReturnOp if the AML expects one but it isn't
njl [Sat, 28 Feb 2004 20:40:24 +0000 (20:40 +0000)]
Local change:  emulate a ReturnOp if the AML expects one but it isn't
present.  Some buggy BIOSs do not have a ReturnOp even though it is
required for a function to return a value.

20 years agoLocal change: In the resume path, give up after waiting for a while
njl [Sat, 28 Feb 2004 20:39:50 +0000 (20:39 +0000)]
Local change:  In the resume path, give up after waiting for a while
for WAK_STS to be set.  Some BIOSs never set it.

20 years agoLocal change: Allow access to the field if it is within the region
njl [Sat, 28 Feb 2004 20:39:09 +0000 (20:39 +0000)]
Local change:  Allow access to the field if it is within the region
size rounded up to a multiple of the access byte width.  This overcomes
"off-by-one" programming errors in the AML often found in Toshiba
laptops.

20 years agoLocal change: Put various debugging options under ACPI_DISASSEMBLER.
njl [Sat, 28 Feb 2004 20:38:40 +0000 (20:38 +0000)]
Local change:  Put various debugging options under ACPI_DISASSEMBLER.

20 years agoUnchanged files from ACPICA 20040220 that are off the vendor branch.
njl [Sat, 28 Feb 2004 20:35:57 +0000 (20:35 +0000)]
Unchanged files from ACPICA 20040220 that are off the vendor branch.

20 years agoVendor import of ACPICA 20040220
njl [Sat, 28 Feb 2004 20:23:30 +0000 (20:23 +0000)]
Vendor import of ACPICA 20040220

20 years agoThis commit was generated by cvs2svn to compensate for changes in r126372,
njl [Sat, 28 Feb 2004 20:23:30 +0000 (20:23 +0000)]
This commit was generated by cvs2svn to compensate for changes in r126372,
which included commits to RCS files with non-trunk default branches.

20 years agoAdd contents to manualpage for generic watchdog facility.
phk [Sat, 28 Feb 2004 20:08:41 +0000 (20:08 +0000)]
Add contents to manualpage for generic watchdog facility.
Formatting likely to break several UN resolutions.

20 years agoAdd a generic watchdog facility which through a single device entry
phk [Sat, 28 Feb 2004 20:06:59 +0000 (20:06 +0000)]
Add a generic watchdog facility which through a single device entry
in /dev controls all available watchdog implementations.

20 years agoClean all the object files whether or not ACPI_DEBUG is specified.
njl [Sat, 28 Feb 2004 19:51:44 +0000 (19:51 +0000)]
Clean all the object files whether or not ACPI_DEBUG is specified.

20 years agoRemove unneeded {} originally used to hold local variables for dummynet
rwatson [Sat, 28 Feb 2004 19:50:43 +0000 (19:50 +0000)]
Remove unneeded {} originally used to hold local variables for dummynet
in a code block, as the variable is now gone.

Submitted by: sam