]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
20 years agoFurther work-out the handling of the high FP registers. The most
marcel [Wed, 12 Nov 2003 01:26:02 +0000 (01:26 +0000)]
Further work-out the handling of the high FP registers. The most
important change is in cpu_switch() where we disable the high FP
registers for the thread that we switch-out if the CPU currently
has its high FP registers. This avoids that the high FP registers
remain enabled for the thread even when the CPU has unloaded them
or the thread migrated to another processor.
Likewise, when we switch-in a thread of that has its high FP
registers on the CPU, we enable them. This avoids an otherwise
harmless, but unnecessary trap to have them enabled.

The code that handles the disabled high FP trap (in trap()) has
been turned into a critical section for the most part to avoid
being preempted. If there's a race, we bail out and have the
processor trap again if necessary.

Avoid using the generic ia64_highfp_save() function when the
context is predictable. The function adds unnecessary overhead.
Don't use ia64_highfp_load() for the same reason. The function
is now unused and can be removed.

These changes make the lazy context switching of the high FP
registers in an UP kernel functional.

20 years agoOh dear, forgot this file in the turnstile commit. This header defines
jhb [Tue, 11 Nov 2003 23:08:26 +0000 (23:08 +0000)]
Oh dear, forgot this file in the turnstile commit.  This header defines
the turnstile API and includes several comments.

Reminded by: peter

20 years agoAdd ID for ALC658 CODEC.
kuriyama [Tue, 11 Nov 2003 22:15:17 +0000 (22:15 +0000)]
Add ID for ALC658 CODEC.

Tested on: GIGABYTE GA-8S655FX-L
Reviewed by: orion

20 years agoAdd an implementation of turnstiles and change the sleep mutex code to use
jhb [Tue, 11 Nov 2003 22:07:29 +0000 (22:07 +0000)]
Add an implementation of turnstiles and change the sleep mutex code to use
turnstiles to implement blocking isntead of implementing a thread queue
directly.  These turnstiles are somewhat similar to those used in Solaris 7
as described in Solaris Internals but are also different.

Turnstiles do not come out of a fixed-sized pool.  Rather, each thread is
assigned a turnstile when it is created that it frees when it is destroyed.
When a thread blocks on a lock, it donates its turnstile to that lock to
serve as queue of blocked threads.  The queue associated with a given lock
is found by a lookup in a simple hash table.  The turnstile itself is
protected by a lock associated with its entry in the hash table.  This
means that sched_lock is no longer needed to contest on a mutex.  Instead,
sched_lock is only used when manipulating run queues or thread priorities.
Turnstiles also implement priority propagation inherently.

Currently turnstiles only support mutexes.  Eventually, however, turnstiles
may grow two queue's to support a non-sleepable reader/writer lock
implementation.  For more details, see the comments in sys/turnstile.h and
kern/subr_turnstile.c.

The two primary advantages from the turnstile code include: 1) the size
of struct mutex shrinks by four pointers as it no longer stores the
thread queue linkages directly, and 2) less contention on sched_lock in
SMP systems including the ability for multiple CPUs to contend on different
locks simultaneously (not that this last detail is necessarily that much of
a big win).  Note that 1) means that this commit is a kernel ABI breaker,
so don't mix old modules with a new kernel and vice versa.

Tested on: i386 SMP, sparc64 SMP, alpha SMP

20 years ago- Disable AGP on ALI chipsets if aperture size is 0.
anholt [Tue, 11 Nov 2003 21:49:18 +0000 (21:49 +0000)]
- Disable AGP on ALI chipsets if aperture size is 0.
- Fail in agp_alloc_gatt if the aperture size is 0 instead of panicing in
  contigmalloc.

Reported by: Bjoern Fischer <bfischer@Techfak.Uni-Bielefeld.DE>
Reviewed by: jhb
MFC after: 1 week

20 years agoFollowing the repo-copy from src/sys/modules/mac_none/Makefile,
rwatson [Tue, 11 Nov 2003 21:23:54 +0000 (21:23 +0000)]
Following the repo-copy from src/sys/modules/mac_none/Makefile,
I neglected to update the filenames/etc in mac_stub.  Do so now.

20 years agoDon't probe busses in the MP Table for the MP Table PCI bridge drivers
jhb [Tue, 11 Nov 2003 21:19:43 +0000 (21:19 +0000)]
Don't probe busses in the MP Table for the MP Table PCI bridge drivers
if the bus number doesn't correspond to a PCI bus in the MP Table.

Reported by: jhay

20 years agoHelp bmah out and add the ips(4) entity.
trhodes [Tue, 11 Nov 2003 19:20:13 +0000 (19:20 +0000)]
Help bmah out and add the ips(4) entity.

20 years agocleanup rijndael API.
ume [Tue, 11 Nov 2003 18:58:54 +0000 (18:58 +0000)]
cleanup rijndael API.
since there are naming conflicts with opencrypto, #define was
added to rename functions intend to avoid conflicts.

Obtained from: KAME

20 years agoAttach ips.4 to the build.
trhodes [Tue, 11 Nov 2003 18:48:02 +0000 (18:48 +0000)]
Attach ips.4 to the build.

20 years agoAdd a manual page for the ips(4) driver.
trhodes [Tue, 11 Nov 2003 18:47:01 +0000 (18:47 +0000)]
Add a manual page for the ips(4) driver.

Requested by: obrien
Reviewed by: scottl (older version)

20 years ago - Add some information about how init, securelevel, and jails
kensmith [Tue, 11 Nov 2003 18:37:50 +0000 (18:37 +0000)]
- Add some information about how init, securelevel, and jails
  interact with each other.
- Minor markup fix (.Dq -> .Va for a variable)

Reviewed by: rwatson
Approved by: blackend (mentor)

20 years ago - Add a note that there are two MIB variables that have per-jail
kensmith [Tue, 11 Nov 2003 18:34:29 +0000 (18:34 +0000)]
- Add a note that there are two MIB variables that have per-jail
  settings.

Reviewed by: rwatson
Approved by: blackend (mentor)

20 years ago - Markup fix-ups (add .Dq, and some hard line breaks at the end
kensmith [Tue, 11 Nov 2003 18:31:36 +0000 (18:31 +0000)]
- Markup fix-ups (add .Dq, and some hard line breaks at the end
  of sentences).

Approved by: blackend (mentor)

20 years ago - Add a note about how jail(2) effects the securelevel.
kensmith [Tue, 11 Nov 2003 18:21:20 +0000 (18:21 +0000)]
- Add a note about how jail(2) effects the securelevel.

Reviewed by: rwatson
Approved by: blackend (mentor)

20 years agoSome motherboards like to remap the SCI (normally IRQ 9) up to a PCI
jhb [Tue, 11 Nov 2003 18:20:10 +0000 (18:20 +0000)]
Some motherboards like to remap the SCI (normally IRQ 9) up to a PCI
interrupt such as IRQ 22 or 19.  However, the ACPI BIOS still routes
interrupts from some PCI devices to the same intpin calling the pin
IRQ 22.  Thus, ACPI expects to address a single interrupt source via two
different names.  To work around this, if the SCI is remapped to a non-ISA
interrupt (i.e., greater than 15), then we use
acpi_OverrideInterruptLevel() function to tell ACPI to use IRQ 22 or 19
rather than IRQ 9 for the SCI.

Previously we would change IRQ 22 or 19's name to IRQ 9 when we encountered
such an Interrupt Source Override entry in the MADT which routed the SCI
properly but left PCI devices mapped to IRQ 22 or 19 w/o a routable
interrupt.

Tested by: sos

20 years agocorrect typos
sam [Tue, 11 Nov 2003 18:16:54 +0000 (18:16 +0000)]
correct typos

Pointed out by: Mike Silbersack

20 years agoAdd an acpi_OverrideInterruptLevel() method that OSPM can use to override
jhb [Tue, 11 Nov 2003 18:12:12 +0000 (18:12 +0000)]
Add an acpi_OverrideInterruptLevel() method that OSPM can use to override
the InterruptLevel used for the SCI.

20 years agoSet RB_SERIAL in boothowto if the firmware output-device is ttya or ttyb.
jake [Tue, 11 Nov 2003 18:01:44 +0000 (18:01 +0000)]
Set RB_SERIAL in boothowto if the firmware output-device is ttya or ttyb.
This ensures that uart gets a higher console priority than syscons when
a serial console is being used.  Testing against the "console" environment
variable doesn't make sense since we only have one loader console driver.

20 years agoRemove the m_defrag call from if_loop; testing with m_fragment
silby [Tue, 11 Nov 2003 17:58:36 +0000 (17:58 +0000)]
Remove the m_defrag call from if_loop; testing with m_fragment
has shown that the IPv6 stack can clearly handle fragmented
mbuf chains without a problem.

MFC after: 1 week

20 years agoo add locking
sam [Tue, 11 Nov 2003 17:57:03 +0000 (17:57 +0000)]
o add locking
o mark isr MPSAFE

Supported by: FreeBSD Foundation

20 years agoo add missing inpcb locking in tcp_respond
sam [Tue, 11 Nov 2003 17:54:47 +0000 (17:54 +0000)]
o add missing inpcb locking in tcp_respond
o replace spl's with lock assertions

Supported by: FreeBSD Foundation

20 years agoipsec_esp_auth is unused when IPSEC_ESP is not defined.
ume [Tue, 11 Nov 2003 17:25:45 +0000 (17:25 +0000)]
ipsec_esp_auth is unused when IPSEC_ESP is not defined.

Reported by: Andre Oppermann <oppermann@pipeline.ch>

20 years agoEnable HTT CPUs by default instead of halting them by default. Users
jhb [Tue, 11 Nov 2003 17:16:15 +0000 (17:16 +0000)]
Enable HTT CPUs by default instead of halting them by default.  Users
should now only have HTT CPUs if they have explicitly asked for them
either by enabling HyperThreading in the BIOS or by using the
MPTABLE_FORCE_HTT kernel option.

20 years agoDisable probing of HTT CPUs by default for the MP Table case. HTT CPUs
jhb [Tue, 11 Nov 2003 17:14:26 +0000 (17:14 +0000)]
Disable probing of HTT CPUs by default for the MP Table case.  HTT CPUs
should only be used if they are enabled in the BIOS.  Now that we support
enumerating CPUs using the ACPI MADT, any HTT machine using ACPI should
respect the BIOS setting.  For HTT machines with ACPI disabled in the
kernel, the MPTABLE_FORCE_HTT kernel option can be used to try to probe HTT
CPUs like have done in the past for the MP Table case.  This option should
only be enabled if HTT is enabled in the BIOS.

20 years agoAdd information about the EVFILT_NETDEV filter
brueffer [Tue, 11 Nov 2003 16:41:27 +0000 (16:41 +0000)]
Add information about the EVFILT_NETDEV filter

PR: docs/56872 (based on)
Submitted by: Suleiman Souhlal <refugee@vt.edu>
Reviewed by: hmp, jmg

20 years agoMFS: Change interface name from "nge" to "ngeth" to avoid conflict
ru [Tue, 11 Nov 2003 16:12:05 +0000 (16:12 +0000)]
MFS: Change interface name from "nge" to "ngeth" to avoid conflict
with nge(4).

20 years ago- Remove empty rogue SMP hardware section.
jhb [Tue, 11 Nov 2003 15:52:31 +0000 (15:52 +0000)]
- Remove empty rogue SMP hardware section.
- Add some additional comments about 'device apic' to note that it can be
  used in both UP and SMP kernels but is required for SMP kernels.

20 years agoUse the same style of paragraph indention that the rest of NOTES uses in
jhb [Tue, 11 Nov 2003 15:49:37 +0000 (15:49 +0000)]
Use the same style of paragraph indention that the rest of NOTES uses in
the SMP section.

20 years agoAxe rotted comment about MP Tables and PCI cards with built in bridges.
jhb [Tue, 11 Nov 2003 15:47:44 +0000 (15:47 +0000)]
Axe rotted comment about MP Tables and PCI cards with built in bridges.
Now that we properly route PCI interrupts for the apic case, these cards
are no longer a problem.

20 years agoCentralise mode setting. Instead of doing it in all subdrivers, do
sos [Tue, 11 Nov 2003 14:55:36 +0000 (14:55 +0000)]
Centralise mode setting. Instead of doing it in all subdrivers, do
it in ata-all.c where it belongs.

Prime controller HW by always setting PIO mode first in attach.

20 years agoSort the device lists alphabetically to make it simpler to add new
simon [Tue, 11 Nov 2003 13:34:53 +0000 (13:34 +0000)]
Sort the device lists alphabetically to make it simpler to add new
devices to the lists in the appropriate places.  This also makes it
easier to find devices in the lists.

OK'ed by: ceri, silby

20 years agoUse a single style of multiple inclusion protection for Netgraph headers.
ru [Tue, 11 Nov 2003 12:30:37 +0000 (12:30 +0000)]
Use a single style of multiple inclusion protection for Netgraph headers.

Reviewed by: archie, harti, emax

20 years agoSave and restore the high FP registers in {g|s}_mcontext(). Note
marcel [Tue, 11 Nov 2003 09:53:37 +0000 (09:53 +0000)]
Save and restore the high FP registers in {g|s}_mcontext(). Note
that we currently do not keep track of whether the thread has
actually used the high FP registers before. If not, we should
not save them in the context which automaticly means that we
also would not restore them from the context. For now, do it
unconditionally so that we can reach functional completeness.

20 years agoFix a nasty bug that got exposed when the sendsig() and sigreturn()
marcel [Tue, 11 Nov 2003 09:25:19 +0000 (09:25 +0000)]
Fix a nasty bug that got exposed when the sendsig() and sigreturn()
functions switched to using {g|s}et_mcontext(). The problem is that
sigreturn(), being a syscall, can be given an async. context (i.e.
one corresponding to an interrupt or trap). When this happens, we
try to return to user mode via epc_syscall_return with a trapframe
that can only be used to return to user mode via exception_restore.

To fix this, we check the frame's flags immediately prior to
epc_syscall_return and branch to exception_restore for non-syscall
frames. Modify the assertion in set_mcontext() to check that if
there's a mismatch, it's because of sigreturn().

20 years agoBound the number of iterations a thread can perform inside
jkoshy [Tue, 11 Nov 2003 09:09:26 +0000 (09:09 +0000)]
Bound the number of iterations a thread can perform inside
ktr_resize_pool(); this eliminates a potential livelock.

Return ENOSPC only if we encountered an out-of-memory condition when
trying to increase the pool size.

Reviewed by: jhb, bde (style)

20 years agoNote support for the Adaptec 2410SA in the aac.4 manpage.
scottl [Tue, 11 Nov 2003 08:40:43 +0000 (08:40 +0000)]
Note support for the Adaptec 2410SA in the aac.4 manpage.

20 years agoUpdate the dump code to flush buffers at the end of the dump
sos [Tue, 11 Nov 2003 07:49:45 +0000 (07:49 +0000)]
Update the dump code to flush buffers at the end of the dump
to avoid loosing evt cached data.

20 years agoRemove reference to sio (superseded by uart).
jake [Tue, 11 Nov 2003 07:49:13 +0000 (07:49 +0000)]
Remove reference to sio (superseded by uart).

20 years agoAdd entries for creator, splash, uart and puc, commented out until they're
jake [Tue, 11 Nov 2003 07:48:02 +0000 (07:48 +0000)]
Add entries for creator, splash, uart and puc, commented out until they're
made the default.  These are needed to run X.

20 years agoRemove references to atkbd, atkbdc, psm and vga.
jake [Tue, 11 Nov 2003 07:40:45 +0000 (07:40 +0000)]
Remove references to atkbd, atkbdc, psm and vga.

20 years agoFix a typo. Allow for the creator not being stdout.
jake [Tue, 11 Nov 2003 07:34:08 +0000 (07:34 +0000)]
Fix a typo.  Allow for the creator not being stdout.

20 years agoAdd a uart attachment/syscons keyboard driver for sun keyboards. In theory
jake [Tue, 11 Nov 2003 07:33:24 +0000 (07:33 +0000)]
Add a uart attachment/syscons keyboard driver for sun keyboards.  In theory
this will work with any uart backend, currently supported hardware uses
either ns8250 or z8530.

20 years agoFix a typo that caused mbrtowc() to always return 0.
tjr [Tue, 11 Nov 2003 07:25:05 +0000 (07:25 +0000)]
Fix a typo that caused mbrtowc() to always return 0.

20 years agoAllow uart to attach to keyboards that are not the firmware's notion of
jake [Tue, 11 Nov 2003 06:52:04 +0000 (06:52 +0000)]
Allow uart to attach to keyboards that are not the firmware's notion of
stdin, such as when using a serial console.  We must recognize these
devices here so that we can override the tty attach routine.

20 years agoAssume that unit 0 is the graphics console initialized by syscons, instead
jake [Tue, 11 Nov 2003 06:47:00 +0000 (06:47 +0000)]
Assume that unit 0 is the graphics console initialized by syscons, instead
of testing if the device's firmware node is stdout.  This allows syscons to
be used when the firmware's input and output is the serial console.

20 years agoFix a bug in the data access error recorvery. Before re-enabling the data
jake [Tue, 11 Nov 2003 06:41:54 +0000 (06:41 +0000)]
Fix a bug in the data access error recorvery.  Before re-enabling the data
cache after a data access error we must discard all cache lines.  When
disabled existing cache lines are not invalidated by stores to memory, so
we risk reading stale data that was cached before the data access error if
we don't flush them.  This is especially fatal when the memory involved
is the active part of the kernel or user stack.  For good measure we also
flush the instruction cache.

This fixes random crashes when the X server probes the PCI bus through
/dev/pci.

20 years agoInclude <sys/reboot.h> the definition of RB_BOOTINFO. The previous
bde [Tue, 11 Nov 2003 06:27:34 +0000 (06:27 +0000)]
Include <sys/reboot.h> the definition of RB_BOOTINFO.  The previous
commit broke the world because it depended on namespace pollution that
was only in my version of <machine/bootinfo.h>.  The include was removed
in rev.1.63 after the last reference to it went away in rev.1.61.

20 years agoRearrange slightly so that DELAY(9) works during cninit.
jake [Tue, 11 Nov 2003 06:08:10 +0000 (06:08 +0000)]
Rearrange slightly so that DELAY(9) works during cninit.

20 years agoFix sound LOR problems:
scottl [Tue, 11 Nov 2003 05:38:28 +0000 (05:38 +0000)]
Fix sound LOR problems:

dsp_open: rearrange to only hold one lock at a time

dsp_close: ditto

mixer_hwvol_init: delete locking, the only consumer seems to
be the ess driver and it only call it a creation time, I
think the device will be stable across the sleepable malloc.

cmi interrupt routine: Release locks while caller chn_intr,
either this or do what emu10k1 does which is have no locks
at in the interrupt handler.

Submitted by: mat@cnd.mcgill.ca

20 years agoAdd a section documenting the sysctl(8) tunables that influence the
jkoshy [Tue, 11 Nov 2003 04:59:25 +0000 (04:59 +0000)]
Add a section documenting the sysctl(8) tunables that influence the
operation of ktrace(2).  Add a cross-reference to sysctl(8).  Make the
language of rev 1.22 more consistent with the rest of the manual page.

20 years agoImprove the performance of radixsort() when
kientzle [Tue, 11 Nov 2003 04:59:23 +0000 (04:59 +0000)]
Improve the performance of radixsort() when
sorting strings with common prefixes by noting
when all the strings land in just one bin.

Testing shows significant speedups (on the order of
30%) on strings with common prefixes and no slowdowns on any
of my test cases.

Submitted by: Markus Bjartveit Kruger <markusk@pvv.ntnu.no>
PR: 58860
Approved by: gordon (mentor)

20 years agoHave utrace(2) return ENOMEM if malloc() fails. Document this error
jkoshy [Tue, 11 Nov 2003 04:54:11 +0000 (04:54 +0000)]
Have utrace(2) return ENOMEM if malloc() fails.  Document this error
return in its manual page.

Reviewed by: jhb

20 years ago - Revision 1.469 of vfs_subr.c resulted in the buf's b_object field being
alc [Tue, 11 Nov 2003 04:45:37 +0000 (04:45 +0000)]
 - Revision 1.469 of vfs_subr.c resulted in the buf's b_object field being
   consistency initialized.  Consequently, a number of conditionals that
   checked the validity of b_object before passing it to VM_OBJECT_LOCK()
   and VM_OBJECT_UNLOCK() are no longer needed.

20 years agoWhitespace sync to MAC branch, expand comment at the head of the file.
rwatson [Tue, 11 Nov 2003 03:40:04 +0000 (03:40 +0000)]
Whitespace sync to MAC branch, expand comment at the head of the file.

20 years agoUse the new "default_labels" syntax in the default mac.conf file.
rwatson [Tue, 11 Nov 2003 03:30:29 +0000 (03:30 +0000)]
Use the new "default_labels" syntax in the default mac.conf file.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

20 years agoFix SYNOPSIS section in Bluetooth man pages
emax [Tue, 11 Nov 2003 03:27:08 +0000 (03:27 +0000)]
Fix SYNOPSIS section in Bluetooth man pages

Reviewed by: imp, julian, ru
Approved by: ru

20 years agoFix few typos
emax [Tue, 11 Nov 2003 02:43:10 +0000 (02:43 +0000)]
Fix few typos

Reviewed by: imp, julian, ru
Approved by: imp (mentor)

20 years agoStop using shared locks for nfs vop locks.
alfred [Tue, 11 Nov 2003 00:32:46 +0000 (00:32 +0000)]
Stop using shared locks for nfs vop locks.

The reason this was done was to avoid a race to the root when an
NFS server went down.  However a semi-recent change to the way that
the kernel's lookup() routine traverses mount points prevents this.

Rev 1.39 of vfs_lookup.c changed the ordering of locks such that we
aquire a shared lock on the mount point being accessed and then drop
the directory vnode lock before requesting the target lock.

With that in place we no longer need shared locks for NFS to prevent
race to the root lockups.

20 years agouse Giant-less callouts when debug_mpsafenet is non-zero
sam [Mon, 10 Nov 2003 23:29:33 +0000 (23:29 +0000)]
use Giant-less callouts when debug_mpsafenet is non-zero

Supported by: FreeBSD Foundation

20 years agoreformat HP eng. mgr quote
wilko [Mon, 10 Nov 2003 23:08:39 +0000 (23:08 +0000)]
reformat HP eng. mgr quote

Requested by: nate

20 years agoIn in_pcbconnect_setup(), don't use the cached inp->inp_route unless
iedowse [Mon, 10 Nov 2003 22:45:37 +0000 (22:45 +0000)]
In in_pcbconnect_setup(), don't use the cached inp->inp_route unless
it is marked as RTF_UP. This appears to fix a crash that was sometimes
triggered when dhclient(8) tried to send a packet after an interface
had been detatched.

Reviewed by: sam

20 years agoManual page for Asynchronous Logging Queues (ALQ) facility.
hmp [Mon, 10 Nov 2003 22:45:09 +0000 (22:45 +0000)]
Manual page for Asynchronous Logging Queues (ALQ) facility.

The manual page contains enough information to get someone started
with ALQ.

MLINKS have been added appropriately.

Approved by: jeff, des
Reviewed by: des, jeff, sam, brooks, rwatson, mtm

20 years agoIf fifo_open() is interrupted, fifo_close() may not get called, causing
truckman [Mon, 10 Nov 2003 22:21:00 +0000 (22:21 +0000)]
If fifo_open() is interrupted, fifo_close() may not get called, causing
a resource leak.  Move the resource deallocation code from fifo_close()
to a new function, fifo_cleanup(), and call fifo_cleanup() from
fifo_close() and the appropriate places in fifo_open().

Tested by:  Lukas Ertl
Pointy hat to: truckman

20 years agoRemove ',' accidentally added after ".Xr fork 2".
ghelmer [Mon, 10 Nov 2003 22:04:51 +0000 (22:04 +0000)]
Remove ',' accidentally added after ".Xr fork 2".

20 years agoPrevent abnormal termination of a child daemon process when created
ghelmer [Mon, 10 Nov 2003 22:01:42 +0000 (22:01 +0000)]
Prevent abnormal termination of a child daemon process when created
by a parent that is a session leader (e.g., login shell) by ignoring
SIGHUP in before calling fork(2) and then restoring SIGHUP's action
after setsid(3).  Based on the patch by Martin Kammerhofer
<mkamm@gmx.net>.

PR: bin/25462
Reviewed by: bde, alex.neyman@auriga.ru

20 years agoScore one 'duh' point for me and replace all instances of scott@ with
trhodes [Mon, 10 Nov 2003 21:56:47 +0000 (21:56 +0000)]
Score one 'duh' point for me and replace all instances of scott@ with
rsm@.

20 years agoIgnore case when comparing CHAP/CHAP81 responses
brian [Mon, 10 Nov 2003 21:56:02 +0000 (21:56 +0000)]
Ignore case when comparing CHAP/CHAP81 responses

PR: 31771

20 years agoAdd MLINK net(4), which points to netintro(4).
hmp [Mon, 10 Nov 2003 21:26:52 +0000 (21:26 +0000)]
Add MLINK net(4), which points to netintro(4).

Requested by: dwhite@

20 years agoMFamd64 (via P4, not in CVS yet):
jhb [Mon, 10 Nov 2003 21:24:34 +0000 (21:24 +0000)]
MFamd64 (via P4, not in CVS yet):
- Use the static boot_address variable directly rather than passing it
  around to several functions.
- Clean up a couple of magic numbers.

20 years agoMark TCP syncache timer as not Giant-free ready yet.
hsu [Mon, 10 Nov 2003 20:42:04 +0000 (20:42 +0000)]
Mark TCP syncache timer as not Giant-free ready yet.

20 years agoFix a bug where the taskqueue kproc was being parented by init
alfred [Mon, 10 Nov 2003 20:39:44 +0000 (20:39 +0000)]
Fix a bug where the taskqueue kproc was being parented by init
because RFNOWAIT was being passed to kproc_create.

The result was that shutdown took quite a bit longer because this
errant "child" would not respond to termination signals from init
at system shutdown.

RFNOWAIT dissassociates itself from the caller by attaching to init
as a parent proc.  We could have had the taskqueue proc listen for
SIGKILL, but being able to SIGKILL a potentially critical system
process doesn't seem like a good idea.

20 years agoAdd a manual page for the USB Audio support in FreeBSD,
hmp [Mon, 10 Nov 2003 20:25:40 +0000 (20:25 +0000)]
Add a manual page for the USB Audio support in FreeBSD,
interfaced via the PCM framework.

This manual page was obtained from NetBSD, and the required
changes were made to adapt it to our uaudio driver.

Pre-cursor review: joe@

20 years agoBump APIC ID limits up to 32 since a machine with 16 CPUs will have APIC
jhb [Mon, 10 Nov 2003 19:52:58 +0000 (19:52 +0000)]
Bump APIC ID limits up to 32 since a machine with 16 CPUs will have APIC
IDs for the I/O APICs that are greater than 16.

Reported by: John Cagle <john.cagle@hp.com>

20 years agoFixed loss of setting of the RB_BOOTINFO flag in rev.1.43. Fixed wrong
bde [Mon, 10 Nov 2003 19:06:09 +0000 (19:06 +0000)]
Fixed loss of setting of the RB_BOOTINFO flag in rev.1.43.  Fixed wrong
comment about this flag in rev.1.61.  It is not historical like the
comment said; it is the flag that says that most of what is laboriously
put in the bootinfo struct is actually there.  Newer kernels were
bootable by even the broken boot2 without losing anything except the
symbol table, but older kernels need at least the memory sizes.

Restoring the "|" with RB_BOOTINFO that was lost in rev.1.43 costs 5
bytes.  The fix can be done in only 4 bytes by fixing some code that
was removed in rev.1.61 (put RB_BOOTINFO back in in the initial value
of "opts" and fix RBX_MASK to not clobber it.)

20 years agoRemove a comment stating that -pthread isn't supported.
deischen [Mon, 10 Nov 2003 18:52:57 +0000 (18:52 +0000)]
Remove a comment stating that -pthread isn't supported.

20 years agoMFCs noted: sendmail-8.12.10, tzdata2003d.
bmah [Mon, 10 Nov 2003 16:27:53 +0000 (16:27 +0000)]
MFCs noted:  sendmail-8.12.10, tzdata2003d.

20 years agoAdd a missing 'the'
brueffer [Mon, 10 Nov 2003 16:04:48 +0000 (16:04 +0000)]
Add a missing 'the'

20 years agoDon't establish the ISR in the sn_activate routine. I've had two
imp [Mon, 10 Nov 2003 16:04:11 +0000 (16:04 +0000)]
Don't establish the ISR in the sn_activate routine.  I've had two
crashes that had sn0 as the irq that's being serviced, when there was
no sn0 in the system.  This seems to prevent them.  Also, we want to
wait until after we've registered with the network layer before we
turn on the interrupt spigot to avoid races.

20 years agoUpdate a comment related to SMP and describe the NO_MIXED_MODE kernel
jhb [Mon, 10 Nov 2003 15:54:32 +0000 (15:54 +0000)]
Update a comment related to SMP and describe the NO_MIXED_MODE kernel
option.

Requested by: bde

20 years agoUpdate a comment.
jhb [Mon, 10 Nov 2003 15:48:30 +0000 (15:48 +0000)]
Update a comment.

Requested by: bde

20 years agoClarify the rule about structure typedefs being discouraged, following
fanf [Mon, 10 Nov 2003 14:32:13 +0000 (14:32 +0000)]
Clarify the rule about structure typedefs being discouraged, following
a discussion on src-committers.

20 years agoAdd a describtion for the '-d' flag
brueffer [Mon, 10 Nov 2003 14:28:33 +0000 (14:28 +0000)]
Add a describtion for the '-d' flag

While I'm here, add a missing comma

PR: 41787
Obtained from: OpenBSD
MFC after: 5 days

20 years agoBased on an excellent suggestion from tanimura@ define I4BPRI and use it
gj [Mon, 10 Nov 2003 14:20:34 +0000 (14:20 +0000)]
Based on an excellent suggestion from tanimura@ define I4BPRI and use it
in place of TTIPRI.

20 years agoReduce debug message.
simokawa [Mon, 10 Nov 2003 14:04:37 +0000 (14:04 +0000)]
Reduce debug message.

20 years agoCorrect the include path so that the include files are found
harti [Mon, 10 Nov 2003 14:04:34 +0000 (14:04 +0000)]
Correct the include path so that the include files are found
with include "...".

20 years agoFix breakage cuased by the selwakeuppri commit by defining TTIPRI for
gj [Mon, 10 Nov 2003 14:02:22 +0000 (14:02 +0000)]
Fix breakage cuased by the selwakeuppri commit by defining TTIPRI for
recent versions of FreeBSD (based on __FreeBSD_version check).

20 years agoFix the build by adjusting the include directives. The problem was
harti [Mon, 10 Nov 2003 13:43:26 +0000 (13:43 +0000)]
Fix the build by adjusting the include directives. The problem was
that the sources use "..." includes to get at include files that
later on reside in an include sub-directory.

20 years agoDon't compile with -g by default; there's a better way to build modules with
ru [Mon, 10 Nov 2003 12:54:54 +0000 (12:54 +0000)]
Don't compile with -g by default; there's a better way to build modules with
debug support.

20 years agoMdoc Janitor:
hmp [Mon, 10 Nov 2003 12:45:10 +0000 (12:45 +0000)]
Mdoc Janitor:

  * Add MLINKS for:

-> Soundblaster emu10k1(4) Driver [points to pcm(4)]
-> Avance Logic ALS400 Driver [points to pcm(4)]

    We should not need separate manual page for each of these
    drivers; instead, linking them to pcm(4) manual page is
    simpler, and new device lists can be easily added to the
    said manual page.

  * While I am here, sort out mdoc(7) entries in ${MAN}.

20 years agoenable aes-xcbc-mac and aes-ctr, again.
ume [Mon, 10 Nov 2003 10:39:14 +0000 (10:39 +0000)]
enable aes-xcbc-mac and aes-ctr, again.

20 years agoRB_EMPTY() applies to red-black trees, not splay trees.
des [Mon, 10 Nov 2003 10:35:06 +0000 (10:35 +0000)]
RB_EMPTY() applies to red-black trees, not splay trees.

20 years agorijndael-alg-fst.[ch]:
ume [Mon, 10 Nov 2003 10:33:39 +0000 (10:33 +0000)]
rijndael-alg-fst.[ch]:
  - redo updating.

rijndael-api-fst.[ch]:
  - switch to use new low level rijndael api.
  - stop using u8, u16 and u32.
  - space cleanup.

Tested by: gbde(8) and phk's test program

20 years agoWhen the P flag is set (i.e. Overwrite regular files before deleting them),
guido [Mon, 10 Nov 2003 09:40:18 +0000 (09:40 +0000)]
When the P flag is set (i.e. Overwrite regular files before deleting them),
do only unlink the file if we could indeed overwrite the file.
Old behaviour: rm -P /tmp/foo (foo mode 0444) would NOT overwrite foo,
but still delete it (with a warning: rm: foo: Permission denied)
New behaviour: Just the EPERM warning, but no deletion

Reviewed by: bde

20 years agoLink the SNMP daemon for NgATM to the build.
harti [Mon, 10 Nov 2003 09:23:09 +0000 (09:23 +0000)]
Link the SNMP daemon for NgATM to the build.

20 years agoAdd the build infrastructure for the SNMP daemon that is the base
harti [Mon, 10 Nov 2003 09:22:40 +0000 (09:22 +0000)]
Add the build infrastructure for the SNMP daemon that is the base
for the NgATM ILMI daemon and for the tree parsing helper program.

20 years agoLink libbsnmp to the build.
harti [Mon, 10 Nov 2003 09:18:04 +0000 (09:18 +0000)]
Link libbsnmp to the build.

20 years agoAdd build infrastructure for libbsnmp and the modules. Add the
harti [Mon, 10 Nov 2003 09:17:34 +0000 (09:17 +0000)]
Add build infrastructure for libbsnmp and the modules. Add the
netgraph module for the SNMP daemon.

20 years agoAdd a define for libbsnmp.
harti [Mon, 10 Nov 2003 09:07:30 +0000 (09:07 +0000)]
Add a define for libbsnmp.

20 years agoCreate sub-directories under share for bsnmp tree definition and MIB files.
harti [Mon, 10 Nov 2003 09:06:38 +0000 (09:06 +0000)]
Create sub-directories under share for bsnmp tree definition and MIB files.