]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agoSynced tx(4) driver descriptions + ``device tx'' line moved to the
Semen Ustimenko [Tue, 7 Nov 2000 20:22:19 +0000 (20:22 +0000)]
Synced tx(4) driver descriptions + ``device tx'' line moved to the
list of drivers using miibus.

PR: kern/22556

23 years agoRemove the now unused and unneeded splassert macros and prototypes.
John Baldwin [Tue, 7 Nov 2000 18:51:42 +0000 (18:51 +0000)]
Remove the now unused and unneeded splassert macros and prototypes.

23 years agoProtect against an infinite loop when prefaulting pages. This can
Alfred Perlstein [Tue, 7 Nov 2000 18:31:16 +0000 (18:31 +0000)]
Protect against an infinite loop when prefaulting pages.  This can
happen when the vm system maps past the end of an object or tries
to map a zero length object, the pmap layer misses the fact that
offsets wrap into negative numbers and we get stuck.

Found by: Joost Pol aka Nohican <nohican@marcella.niets.org>
Submitted by: tegge

23 years agoThis file has not been used for long time.
Tatsumi Hosokawa [Tue, 7 Nov 2000 14:14:38 +0000 (14:14 +0000)]
This file has not been used for long time.

23 years agoMoved if_de to mfsroot.flp (we've got 16KB free space in kern.flp)
Tatsumi Hosokawa [Tue, 7 Nov 2000 14:00:04 +0000 (14:00 +0000)]
Moved if_de to mfsroot.flp (we've got 16KB free space in kern.flp)

23 years agoLoad the kernel and root file systems from floppy:/.
Josef Karthauser [Tue, 7 Nov 2000 12:33:46 +0000 (12:33 +0000)]
Load the kernel and root file systems from floppy:/.

23 years agoFix for powering off a HP DJ950C during printing. As stated by Ian:
Nick Hibma [Tue, 7 Nov 2000 10:50:34 +0000 (10:50 +0000)]
Fix for powering off a HP DJ950C during printing. As stated by Ian:

When the printer is turned off the pipe write will cause and error,
which causes lpd to close the device and reopen it to clear the error.
After a short while the device will disappear from the bus but lpd will
have opened the ulpt0 port by then. ulpt_status will check for status
without checking the sc->dying flag and panic the kernel when the device
finally disappears from the bus.

Submitted by: Ian Dowse <iedowse@maths.tcd.ie>

23 years agonewbusify the en atm driver.
Kenjiro Cho [Tue, 7 Nov 2000 09:31:28 +0000 (09:31 +0000)]
newbusify the en atm driver.

23 years agonewbusify the en atm driver.
Kenjiro Cho [Tue, 7 Nov 2000 09:30:14 +0000 (09:30 +0000)]
newbusify the en atm driver.

also
 - sync with netbsd
 - fix a bug that miscalculates tx cell counts when the pointer size isn't 4

tested both ENI and Adaptec cards on both i386 and alpha.

23 years agoFixed the security breach I introduced in rev 1.145.
Ruslan Ermilov [Tue, 7 Nov 2000 09:20:32 +0000 (09:20 +0000)]
Fixed the security breach I introduced in rev 1.145.
Disallow getsockopt(IP_FW_ADD) if securelevel >= 3.

PR: 22600

23 years agoAdded Intel Gigabit Ethernet card to device menu.
Tatsumi Hosokawa [Tue, 7 Nov 2000 09:16:14 +0000 (09:16 +0000)]
Added Intel Gigabit Ethernet card to device menu.

23 years agoWhile we're still arguing over debugging output, at least be in a
Jordan K. Hubbard [Tue, 7 Nov 2000 08:47:11 +0000 (08:47 +0000)]
While we're still arguing over debugging output, at least be in a
self-consistent state.

Requested by: bde

23 years agoHandle being given a connect()ed udp descriptor as stdin rather
Brian Somers [Tue, 7 Nov 2000 04:29:46 +0000 (04:29 +0000)]
Handle being given a connect()ed udp descriptor as stdin rather
than assuming it's unconnected.

23 years agoPass the correct output options to the ccp output initialisation
Brian Somers [Tue, 7 Nov 2000 04:29:33 +0000 (04:29 +0000)]
Pass the correct output options to the ccp output initialisation
routine rather than passing it the first requested output option.

Ensure that options are freed correctly even if we don't reach
TLU.

23 years agoDocument the KTR_VERBOSE option.
John Baldwin [Tue, 7 Nov 2000 01:50:10 +0000 (01:50 +0000)]
Document the KTR_VERBOSE option.

23 years ago- Remove much of the inlining of the KTR tracepoints into a ktr_tracepoint()
John Baldwin [Tue, 7 Nov 2000 01:49:48 +0000 (01:49 +0000)]
- Remove much of the inlining of the KTR tracepoints into a ktr_tracepoint()
  function declared in kern_ktr.c.  The only inline checks left are the
  checks that compare KTR_COMPILE with the supplied mask and thus should
  be optimized away into either nothing or a direct call to ktr_tracepoint().
- Move several KTR-related options to opt_ktr.h now that they are only
  needed by kern_ktr.c and not by ktr.h.
- Add in the ktr_verbose functionality if KTR_EXTEND is turned on.  If the
  global variable 'ktr_verbose' is non-zero, then KTR messages will be
  dumped to the console.  This variable can be set by either kernel code
  or via the 'debug.ktr_verbose' sysctl.  It defaults to off unless the
  KTR_VERBOSE kernel option is specified in which case it defaults to on.
  This can be useful when the machine locks up spinning in a loop with
  interrupts disabled as you might be able to see what it is doing when it
  locks up.

Requested by: phk

23 years agoThe vortex driver can be compiled as a KLD now. The EISA attachment
Bill Paul [Tue, 7 Nov 2000 01:03:23 +0000 (01:03 +0000)]
The vortex driver can be compiled as a KLD now. The EISA attachment
is only built on the i386 platform for now, since it depends on symbols
which I'm pretty sure won't be present in the alpha build.

23 years agoThe vx driver no longer needs the PCI compat shims. Also should now
Bill Paul [Tue, 7 Nov 2000 00:58:35 +0000 (00:58 +0000)]
The vx driver no longer needs the PCI compat shims. Also should now
work on the alpha (at least the PCI part should).

23 years agoUpdate the vortex driver so that it no longer needs the PCI compat
Bill Paul [Tue, 7 Nov 2000 00:56:14 +0000 (00:56 +0000)]
Update the vortex driver so that it no longer needs the PCI compat
interface. In addition to using newbus, it also uses bus_space rather
than inb/outb to make it MI. The grody static softc allocation stuff
has been removed as well.

23 years agoMinor nit: missed ithd_loop -> sithd_loop in the KTR tracepoints.
John Baldwin [Tue, 7 Nov 2000 00:45:18 +0000 (00:45 +0000)]
Minor nit: missed ithd_loop -> sithd_loop in the KTR tracepoints.

23 years agoRemove an unneeded #include <machine/bus.h> that snuck in accidentally with
John Baldwin [Tue, 7 Nov 2000 00:44:24 +0000 (00:44 +0000)]
Remove an unneeded #include <machine/bus.h> that snuck in accidentally with
the MI mutexes.

Submitted indirectly by: bde

23 years agoadjust dma channels for vibra16x; recording should now work. full duplex does
Cameron Grant [Tue, 7 Nov 2000 00:38:59 +0000 (00:38 +0000)]
adjust dma channels for vibra16x; recording should now work.  full duplex does
not work on vibra16x, so is disabled.

23 years agoslight mods to isa dma and channel flushing code
Cameron Grant [Tue, 7 Nov 2000 00:32:35 +0000 (00:32 +0000)]
slight mods to isa dma and channel flushing code

23 years agoif a channel dies, rejuvenate it on close()
Cameron Grant [Tue, 7 Nov 2000 00:29:24 +0000 (00:29 +0000)]
if a channel dies, rejuvenate it on close()

23 years agoIgnore resources with a size of 0, as these are disabled (and we don't
Mike Smith [Tue, 7 Nov 2000 00:03:33 +0000 (00:03 +0000)]
Ignore resources with a size of 0, as these are disabled (and we don't
deal with them properly elsewhere).

Submitted by: Masayuki FUKUI <fukui@sonic.nm.fujitsu.co.jp>

23 years agoMFS: add ATA raid support for sysinstall
Jordan K. Hubbard [Mon, 6 Nov 2000 23:15:01 +0000 (23:15 +0000)]
MFS: add ATA raid support for sysinstall

23 years agoRemove unused PCI includes.
Mike Smith [Mon, 6 Nov 2000 22:33:49 +0000 (22:33 +0000)]
Remove unused PCI includes.

23 years agoadd AFMT_8BIT for easier determination of formats
Cameron Grant [Mon, 6 Nov 2000 22:22:52 +0000 (22:22 +0000)]
add AFMT_8BIT for easier determination of formats

23 years agoQuieten some warnings about correct usage of assignments as truth values.
Mike Smith [Mon, 6 Nov 2000 21:32:13 +0000 (21:32 +0000)]
Quieten some warnings about correct usage of assignments as truth values.

23 years agoFix async notifications for listners registered to wildcard nodes. For
Justin T. Gibbs [Mon, 6 Nov 2000 20:12:07 +0000 (20:12 +0000)]
Fix async notifications for listners registered to wildcard nodes.  For
example, a client registered to receive specific events for bus 0, target *,
lun *, was not receiving notifications.

Reviewed by: ken@FreeBSD.org

23 years agoaic7xxx.c:
Justin T. Gibbs [Mon, 6 Nov 2000 20:05:38 +0000 (20:05 +0000)]
aic7xxx.c:
When restarting the sequencer, ensure that the SCBCNT register
is 0.  A non-zero count will prevent the setting of the CCSCBDIR
bit in any future dma operations.  The only time CCSCBCNT would
be non-zero is if we happened to halt the dma during a reset,
but even that should never happen.  Better safe than sorry.

When a command completes before the target responds to an
ATN for a recovery command, we now notify the kernel so that
any recovery operation requeued in the qinfifo can be removed
safely.  In the past, we did this in ahc_done(), but ahc_done()
may be called without the card paused.  This also avoids a
recursive call to ahc_search_qinifo() which could have occurred if
ahc_search_qinififo() happened to be the routine to complete
a recovery action.

Fix 8bit math used for adjusting the qinfifo.  The index must
be wrapped properly within the 256 entry array.  We rely on the
fact that qinfifonext is a uint8_t in most cases to handle
this wrap, but we missed a few spots where the resultant
calculation was promoted to an int.

Change the way that we deal with aborting the first or second
entry from the qinfifo.  We now swap the first entry in the
qinfifo with the "next queued scb" to force the sequencer
to see an abort collision if we ever touch the qinififo while
the sequencer is mid SCB dma.

aic7xxx.reg:
Add new MKMSG_FAILED sequencer interrupt.  This displaced
the BOGUS_TAG interrupt used in some previous sequencer code
debugging.

aic7xxx.seq:
Increment our position in the qinfifo only once the dma
is complete and we have verified that the queue has not
been changed during our DMA.  This simplifies code in the
kernel.

Protect against "instruction creep" when issuing a pausing
sequencer interrupt.  On at least the 7890/91/96/97, the
sequencer will coast after issuing the interrupt for up
to two instructions.  In the past we delt with this by
using carefully placed nops.  Now we call a routine to
issue the interrupt followed by a nop and a ret.

Tell the kernel should an SCB complete with the MK_MESSAGE
flag still set.  This means the target ignored our ATN request.

Clear the channel twice as we exit the data phase.  On the
aic7890/91, the S/G preload logic may require the second
clearing to get the last S/G out of the FIFO.

aic7xxx_freebsd.c:
Don't bother searching the qinfifo for a doubly queued
recovery scb in ahc_done.  This case is handled by the
core driver now.

Free the path used to issue async callbacks after the callback
is complete.

aic7xxx_inline.h:
Split the SCB queue routine into a routine that swaps
the SCB with the "next queued SCB" and a routine that
calls the swapping routine and notifies the card of
the new SCB.  The swapping routine is now also used by
ahc_search_qinfifo.

23 years agoCosmetic change of a structure name.
Garance A Drosehn [Mon, 6 Nov 2000 19:36:38 +0000 (19:36 +0000)]
Cosmetic change of a structure name.
Turn    'struct queue { q_time, q_name }'           (loosely-speaking)
into    'struct jobqueue { job_time, job_cfname }'

Reviewed by: GAWollman

23 years agoGet rid of a minor compile-time warning.
Garance A Drosehn [Mon, 6 Nov 2000 19:19:49 +0000 (19:19 +0000)]
Get rid of a minor compile-time warning.

23 years agoThis commit was generated by cvs2svn to compensate for changes in r68396,
Jeroen Ruigrok van der Werven [Mon, 6 Nov 2000 16:10:57 +0000 (16:10 +0000)]
This commit was generated by cvs2svn to compensate for changes in r68396,
which included commits to RCS files with non-trunk default branches.

23 years agoFix AA being cleared on notify "queries"
Jeroen Ruigrok van der Werven [Mon, 6 Nov 2000 16:10:57 +0000 (16:10 +0000)]
Fix AA being cleared on notify "queries"

Submitted by: Mark Andrews <marka@nominum.com>

23 years agoFixed typos.
Ruslan Ermilov [Mon, 6 Nov 2000 15:46:57 +0000 (15:46 +0000)]
Fixed typos.

23 years agoFixed typo: .ar -> .Ar
Ruslan Ermilov [Mon, 6 Nov 2000 15:18:56 +0000 (15:18 +0000)]
Fixed typo: .ar -> .Ar

23 years agoFixed typo: .FR -> .Fa
Ruslan Ermilov [Mon, 6 Nov 2000 12:41:27 +0000 (12:41 +0000)]
Fixed typo: .FR -> .Fa

23 years ago-mdoc cleanup: replace custom .ES/.EE macros with literal display.
Ruslan Ermilov [Mon, 6 Nov 2000 12:37:45 +0000 (12:37 +0000)]
-mdoc cleanup: replace custom .ES/.EE macros with literal display.

23 years agoFixed typo: .PB -> .El
Ruslan Ermilov [Mon, 6 Nov 2000 12:19:35 +0000 (12:19 +0000)]
Fixed typo: .PB -> .El

23 years agoAvoid use of tbl(1).
Ruslan Ermilov [Mon, 6 Nov 2000 12:03:43 +0000 (12:03 +0000)]
Avoid use of tbl(1).

23 years agoProperly declare the multiple-columns list.
Ruslan Ermilov [Mon, 6 Nov 2000 11:18:13 +0000 (11:18 +0000)]
Properly declare the multiple-columns list.

23 years agoAttempt to fix problem with users being able to convince the crontab
David Malone [Mon, 6 Nov 2000 11:17:37 +0000 (11:17 +0000)]
Attempt to fix problem with users being able to convince the crontab
program to read any file which is a valid crontab file.

The fix is based on that used in NetBSD and OpenBSD - we keep the
file open while the user is editing it. This means that files must
be edited in place. Cron attempts to warn you if your editor does
not do this. The fact that the file must be edited in place is also
noted in the man page.

This patch has been confirmed to work by atleast one person on
-security and has been tested locally.

Obtained from: OpenBSD

23 years agoFixed typo: .FL -> .Fl
Ruslan Ermilov [Mon, 6 Nov 2000 09:29:17 +0000 (09:29 +0000)]
Fixed typo: .FL -> .Fl

23 years agorelease/sysinstall/lndir.c has not been used, but statically linked
Tatsumi Hosokawa [Mon, 6 Nov 2000 09:28:54 +0000 (09:28 +0000)]
release/sysinstall/lndir.c has not been used, but statically linked
to sysinstall for long time.  Remove it.

23 years ago.UC -> .Os
Ruslan Ermilov [Mon, 6 Nov 2000 09:27:03 +0000 (09:27 +0000)]
.UC -> .Os

23 years agoFixed typo: .EL -> .El
Ruslan Ermilov [Mon, 6 Nov 2000 09:20:09 +0000 (09:20 +0000)]
Fixed typo: .EL -> .El

23 years agoFixed typo: .SY -> .Sy
Ruslan Ermilov [Mon, 6 Nov 2000 09:17:44 +0000 (09:17 +0000)]
Fixed typo: .SY -> .Sy

23 years agoFinish conversion from man(7) to mdoc(7).
Ruslan Ermilov [Mon, 6 Nov 2000 09:14:22 +0000 (09:14 +0000)]
Finish conversion from man(7) to mdoc(7).

23 years agoCosmetic improvements to a few recvjob-related error messages.
Garance A Drosehn [Mon, 6 Nov 2000 04:37:56 +0000 (04:37 +0000)]
Cosmetic improvements to a few recvjob-related error messages.

23 years agoFix a format-code, thus getting rid of a compile-time warning msg.
Garance A Drosehn [Mon, 6 Nov 2000 04:11:56 +0000 (04:11 +0000)]
Fix a format-code, thus getting rid of a compile-time warning msg.

23 years agoCheck that p->p_pptr is not NULL - kernel processes have no parents!
Dag-Erling Smørgrav [Mon, 6 Nov 2000 03:23:56 +0000 (03:23 +0000)]
Check that p->p_pptr is not NULL - kernel processes have no parents!

23 years agofix paste-o in mixer code - actually set right channel volume instead of
Cameron Grant [Mon, 6 Nov 2000 02:47:43 +0000 (02:47 +0000)]
fix paste-o in mixer code - actually set right channel volume instead of
doing the left channel twice.

23 years agofix es1370 mixer by adding reinit function to it's mixer function list.
Cameron Grant [Mon, 6 Nov 2000 02:37:28 +0000 (02:37 +0000)]
fix es1370 mixer by adding reinit function to it's mixer function list.

23 years agoMFS: eliminate duplicate start line
Jordan K. Hubbard [Sun, 5 Nov 2000 23:14:49 +0000 (23:14 +0000)]
MFS: eliminate duplicate start line

23 years agoMFS: comment character and readability fixes.
Jordan K. Hubbard [Sun, 5 Nov 2000 22:49:15 +0000 (22:49 +0000)]
MFS: comment character and readability fixes.

23 years agoELF kernels should use an ELF sysvec. This allows us to move a.out
David E. O'Brien [Sun, 5 Nov 2000 19:14:00 +0000 (19:14 +0000)]
ELF kernels should use an ELF sysvec.  This allows us to move a.out
specific files to those platforms that acutally support a.out.

23 years agoBack out change to prepend /sbin:/bin to $PATH, just overwrite $PATH
Don Lewis [Sun, 5 Nov 2000 17:59:29 +0000 (17:59 +0000)]
Back out change to prepend /sbin:/bin to $PATH, just overwrite $PATH
with these in the normal case.

Set MAKEDEVPATH in sysinstall to include the /mnt2 stuff before starting
the fixit shell.

23 years agoIgnore chflags failure so that doMFSKERN won't abort on an NFS mounted
Don Lewis [Sun, 5 Nov 2000 15:38:05 +0000 (15:38 +0000)]
Ignore chflags failure so that doMFSKERN won't abort on an NFS mounted
filesystem.

23 years agoChange MAKEDEV so that it prepends /sbin:/bin to $PATH instead of totally
Don Lewis [Sun, 5 Nov 2000 15:34:58 +0000 (15:34 +0000)]
Change MAKEDEV so that it prepends /sbin:/bin to $PATH instead of totally
overwriting $PATH, and find mknod $PATH instead of hardcoding /sbin so
that the copy of MAKEDEV on the fixit floppy is usable, since mknod and
expr live in /mnt2/stand when the fixit floppy is running.

Get rid of the sed invokation in release/Makefile that attempts to
delete the PATH setting stuff from MAKEDEV on the fixit floppy.  This
hasn't worked since a long ago change to MAKEDEV caused the sed
expression to no longer match.

PR: misc/21241

23 years agoHonor the ip address given in the root-path dhcp option.
Paul Saab [Sun, 5 Nov 2000 14:55:09 +0000 (14:55 +0000)]
Honor the ip address given in the root-path dhcp option.

PR: 21743
Submitted by: Brian Candler <B.Candler@pobox.com>

23 years agoSwitched from i386/isa/scsi_dvcfg.h to cam/scsi/scsi_dvcfg.h
Yoshihiro Takahashi [Sun, 5 Nov 2000 14:34:35 +0000 (14:34 +0000)]
Switched from i386/isa/scsi_dvcfg.h to cam/scsi/scsi_dvcfg.h

23 years agoMerged from the following changes.
Yoshihiro Takahashi [Sun, 5 Nov 2000 14:31:19 +0000 (14:31 +0000)]
Merged from the following changes.

sys/conf/Makefile.i386      1.211
sys/conf/files.i386         1.329
sys/isa/fd.c                1.186, 1.188 and 1.189
sys/isa/sio.c               1.305 and 1.317
sys/i386/conf/GENERIC       1.270, 1.281, 1.282 and 1.284
sys/i386/i386/machdep.c     1.419
sys/i386/i386/userconfig.c  1.184

23 years agoMerged from the following changes.
Yoshihiro Takahashi [Sun, 5 Nov 2000 12:35:41 +0000 (12:35 +0000)]
Merged from the following changes.

sys/boot/i386/btx/btx/Makefile 1.9
sys/boot/i386/btx/btx/btx.s 1.23
sys/boot/i386/libi386/biosdisk.c 1.32 and 1.33
sys/boot/i386/libi386/biosmem.c 1.5
sys/boot/i386/libi386/comconsole.c 1.8
sys/boot/i386/libi386/gatea20.c 1.3
sys/boot/i386/libi386/time.c 1.4
sys/boot/i386/libi386/vidconsole.c 1.13
sys/boot/i386/loader/Makefile 1.48
sys/boot/i386/loader/main.c 1.22

23 years agoELF kernels should use an ELF sysvec. This allows us to move a.out
David E. O'Brien [Sun, 5 Nov 2000 10:41:35 +0000 (10:41 +0000)]
ELF kernels should use an ELF sysvec.  This allows us to move a.out
specific files to those platforms that acutally support a.out.

23 years agoSwitch over to using the Christos Zoulas maintained version in contrib/
David E. O'Brien [Sun, 5 Nov 2000 09:06:06 +0000 (09:06 +0000)]
Switch over to using the Christos Zoulas maintained version in contrib/
This also gives use the same exact results as NetBSD, thus sharing more
code with our bretheren.

23 years agoThis commit was generated by cvs2svn to compensate for changes in r68349,
David E. O'Brien [Sun, 5 Nov 2000 08:33:55 +0000 (08:33 +0000)]
This commit was generated by cvs2svn to compensate for changes in r68349,
which included commits to RCS files with non-trunk default branches.

23 years agoVirgin import of FILE 3.32
David E. O'Brien [Sun, 5 Nov 2000 08:33:55 +0000 (08:33 +0000)]
Virgin import of FILE 3.32

23 years agoFix getdents syscall.
Marcel Moolenaar [Sun, 5 Nov 2000 07:31:17 +0000 (07:31 +0000)]
Fix getdents syscall.

The offset field in struct dirent was set to the offset of
the next dirent in rev 1.36. The offset was calculated from
the current offset and the record length. This offset does
not necessarily match the real offset when we are using
cookies. Therefore, also use the cookies to set the offset
field in struct dirent if we're using cookies to iterate
through the dirents.

23 years agoMerge some OpenBSD/NetBSD fixes to the recent MPPE/CHAP0x81 update.
Brian Somers [Sun, 5 Nov 2000 03:25:09 +0000 (03:25 +0000)]
Merge some OpenBSD/NetBSD fixes to the recent MPPE/CHAP0x81 update.

23 years agoFix potential problem processing jobs from hosts with >32 character hostnames.
Garance A Drosehn [Sun, 5 Nov 2000 03:24:26 +0000 (03:24 +0000)]
Fix potential problem processing jobs from hosts with >32 character hostnames.
This may fix a problem reported by Juha Ylitalo <juha.o.ylitalo@nokia.com>

23 years agoFix 'lprm' processing so is more likely to work correctly when dealing
Garance A Drosehn [Sun, 5 Nov 2000 03:21:57 +0000 (03:21 +0000)]
Fix 'lprm' processing so is more likely to work correctly when dealing
with long (>32 character) hostnames.

PR: 14978
Submitted by: Tatsuya Kudoh <cdr@cosmonet.org>

23 years agoFix breakage for parallel builds.
Marcel Moolenaar [Sun, 5 Nov 2000 03:10:45 +0000 (03:10 +0000)]
Fix breakage for parallel builds.

23 years agoIn the error-message routine for receiving a job, move the "cleanup" to be
Garance A Drosehn [Sun, 5 Nov 2000 02:24:20 +0000 (02:24 +0000)]
In the error-message routine for receiving a job, move the "cleanup" to be
after the error message is printed, because the error message may refer to
variables the "cleanup" routine will zero out.

PR: 21007

23 years agoAlways emply the NCO to attenuate jitter. The Receive clock recovery
Poul-Henning Kamp [Sat, 4 Nov 2000 23:23:27 +0000 (23:23 +0000)]
Always emply the NCO to attenuate jitter.  The Receive clock recovery
circuit generates too much jitter to be used directly as xmit clock.

Don't miscount pending bytes in weird error conditions.

Drop the rest of a packet if we run out of tx-md's.

Trig the xmit-frame signal on rising edge, this fixed the one-bit-too-late
position of the HDLC frames in E1 mode.

23 years agoThis commit was generated by cvs2svn to compensate for changes in r68332,
Kris Kennaway [Sat, 4 Nov 2000 22:23:19 +0000 (22:23 +0000)]
This commit was generated by cvs2svn to compensate for changes in r68332,
which included commits to RCS files with non-trunk default branches.

23 years agoImport vendor fix for insecure temporary filename creation with the
Kris Kennaway [Sat, 4 Nov 2000 22:23:19 +0000 (22:23 +0000)]
Import vendor fix for insecure temporary filename creation with the
'<<' operator, reported on bugtraq by proton <proton@ENERGYMECH.NET>

23 years agoChange the sf_bufs wakeups to be wakeup_one(), because we don't want to
Bosko Milekic [Sat, 4 Nov 2000 21:55:25 +0000 (21:55 +0000)]
Change the sf_bufs wakeups to be wakeup_one(), because we don't want to
wakeup all of the sleeping threads when we free only one buffer. This
avoids us having to needlessly try again (and fail, and go back to
sleep) for all the threads sleeping. We will now only wakeup the
thread we know will succeed.

Reviewed by: green

23 years agoOur SHRT_MIN definition was actually 4 bits too big.
David E. O'Brien [Sat, 4 Nov 2000 21:01:44 +0000 (21:01 +0000)]
Our SHRT_MIN definition was actually 4 bits too big.

Submitted by: Bradley T. Hughes <bhughes@trolltech.com>

23 years ago* Consistently use the `make_resolv_conf' function.
David E. O'Brien [Sat, 4 Nov 2000 20:45:35 +0000 (20:45 +0000)]
* Consistently use the `make_resolv_conf' function.
* Better handling of the 127.0.0.1 route.
* Minor style tweak to reduce diffs from v3 script and ours.

Obtained from: ISC v3 client script

23 years agoThis commit was generated by cvs2svn to compensate for changes in r68325,
David E. O'Brien [Sat, 4 Nov 2000 20:14:55 +0000 (20:14 +0000)]
This commit was generated by cvs2svn to compensate for changes in r68325,
which included commits to RCS files with non-trunk default branches.

23 years agoImport Patchlevel 5 of the ISC 2.0 dhcp client plus bug fixes from the
David E. O'Brien [Sat, 4 Nov 2000 20:14:55 +0000 (20:14 +0000)]
Import Patchlevel 5 of the ISC 2.0 dhcp client plus bug fixes from the
beta ISC DHCP version 3 offering.

In message http://www.isc.org/ml-archives/dhcp-client/2000/10/msg00001.html
author Ted Lemon stated "This will not be fixed in any 2.0 release - 2.0
is no longer being maintained." to a reported problem about an
interoperability problem against Microsoft servers.  FreeBSD went with the
ISC client vs. the WIDE client because others convinced me it was better
supported.  Sigh.  I wonder if version 3 will get the same treatment after
its release...

Since FreeBSD generally uses only released contrib products and the ISC
version 3 offering is still in beta, our backs are up against the wall.

The common/options.c rev 1.65 work around for erroneous Microsoft DHCP
servers has been back ported to the version 2.0pl5 client.  Since this
comes from a change in the vendor's own code (and would no doubt also be
committed to the version 2 client if the author were still supporting it),
we will consider this a vendor release and import this as such.

PR: 21658
Submitted by: Motomichi Matsuzaki <mzaki@e-mail.ne.jp>

23 years agoFix conflicts.
David E. O'Brien [Sat, 4 Nov 2000 19:59:11 +0000 (19:59 +0000)]
Fix conflicts.

23 years agoImport Patchlevel 5 of the ISC 2.0 dhcp client.
David E. O'Brien [Sat, 4 Nov 2000 19:57:10 +0000 (19:57 +0000)]
Import Patchlevel 5 of the ISC 2.0 dhcp client.

23 years agoThis commit was generated by cvs2svn to compensate for changes in r68320,
David E. O'Brien [Sat, 4 Nov 2000 19:57:10 +0000 (19:57 +0000)]
This commit was generated by cvs2svn to compensate for changes in r68320,
which included commits to RCS files with non-trunk default branches.

23 years agotp->snd_recover is part of the New Reno recovery algorithm, and should
Jonathan Lemon [Sat, 4 Nov 2000 15:59:39 +0000 (15:59 +0000)]
tp->snd_recover is part of the New Reno recovery algorithm, and should
only be checked if the system is currently performing New Reno style
fast recovery.  However, this value was being checked regardless of the
NR state, with the end result being that the congestion window was never
opened.

Change the logic to check t_dupack instead; the only code path that
allows it to be nonzero at this point is NewReno, so if it is nonzero,
we are in fast recovery mode and should not touch the congestion window.

Tested by: phk

23 years agoAdded used include of <machine/bus.h> -- don't depend on evil namespace
Bruce Evans [Sat, 4 Nov 2000 15:03:34 +0000 (15:03 +0000)]
Added used include of <machine/bus.h> -- don't depend on evil namespace
pollution in <sys/mutex.h>.  This was half fixed in rev.1.3 of
midwayreg.h.  The pollution exposed the bug that this driver was using
toy versions of the bus space macros under FreeBSD.  Disabling the
toy versions made this driver compile but dependent on the pollution.
There was still a toy version of bus_space_read_1() in unreachable code.

23 years agoEnabled the used include of <machine/bus.h> -- don't depend on evil
Bruce Evans [Sat, 4 Nov 2000 14:31:47 +0000 (14:31 +0000)]
Enabled the used include of <machine/bus.h> -- don't depend on evil
namespace pollution in <sys/mutex.h>.  This was half fixed in rev.1.3
of midwayreg.h.  The pollution exposed the bug that this driver was
using toy versions of the bus space macros under FreeBSD.  Disabling
the toy versions made this driver compile and maybe support PIO space,
but dependent on the pollution.

23 years agoMake compilable. if_fddisubr.c depended on sys/malloc.h by my
Hajimu UMEMOTO [Sat, 4 Nov 2000 14:21:23 +0000 (14:21 +0000)]
Make compilable.  if_fddisubr.c depended on sys/malloc.h by my
previous commit.

Reported by: Jim Bryant <jbryant@A010-0935.KSCY.splitrock.net>

23 years agoSupport a.out: avoid (%dx) in in/out instructions, and use an m4
Robert Nordier [Sat, 4 Nov 2000 13:03:52 +0000 (13:03 +0000)]
Support a.out: avoid (%dx) in in/out instructions, and use an m4
macro to supply underscores for externals.

23 years agoAdd support for creating a.out output files in addition to ELF.
Robert Nordier [Sat, 4 Nov 2000 13:02:00 +0000 (13:02 +0000)]
Add support for creating a.out output files in addition to ELF.
This allows booting from compressed binaries using older bootstraps.

Thanks to: dwmalone

23 years agoMF4: Add LOADER_TFTP_SUPPORT make.conf flag.
Paul Saab [Sat, 4 Nov 2000 08:43:13 +0000 (08:43 +0000)]
MF4: Add LOADER_TFTP_SUPPORT make.conf flag.

23 years agoFixed breakage of mknod() in rev.1.48 of ext2_vnops.c and rev.1.126 of
Bruce Evans [Sat, 4 Nov 2000 08:10:56 +0000 (08:10 +0000)]
Fixed breakage of mknod() in rev.1.48 of ext2_vnops.c and rev.1.126 of
ufs_vnops.c:

1) i_ino was confused with i_number, so the inode number passed to
   VFS_VGET() was usually wrong (usually 0U).
2) ip was dereferenced after vgone() freed it, so the inode number
   passed to VFS_VGET() was sometimes not even wrong.

Bug (1) was usually fatal in ext2_mknod(), since ext2fs doesn't have
space for inode 0 on the disk; ino_to_fsba() subtracts 1 from the
inode number, so inode number 0U gives a way out of bounds array
index.  Bug(1) was usually harmless in ufs_mknod(); ino_to_fsba()
doesn't subtract 1, and VFS_VGET() reads suitable garbage (all 0's?)
from the disk for the invalid inode number 0U; ufs_mknod() returns
a wrong vnode, but most callers just vput() it; the correct vnode is
eventually obtained by an implicit VFS_VGET() just like it used to be.

Bug (2) usually doesn't happen.

23 years agouse ``config auto "ata" ?'' for DHU Mobile Media CD-ROM
MIHIRA Sanpei Yoshiro [Sat, 4 Nov 2000 08:10:12 +0000 (08:10 +0000)]
use ``config auto "ata" ?'' for DHU Mobile Media CD-ROM

Submitted by: Motonobu KOBAYASHI <kobayashimo@nttdocomo.co.jp>
[bsd-nomads:14777]

23 years agoNow have the `linux' module on the Alpha too.
David E. O'Brien [Sat, 4 Nov 2000 07:31:46 +0000 (07:31 +0000)]
Now have the `linux' module on the Alpha too.

23 years agoFix generated include path.
David E. O'Brien [Sat, 4 Nov 2000 07:21:37 +0000 (07:21 +0000)]
Fix generated include path.

Approved by: JKH

23 years agoSetup and put to use the mutex lock for sf_freelist, the sendfile(2) bufs
Bosko Milekic [Sat, 4 Nov 2000 07:16:08 +0000 (07:16 +0000)]
Setup and put to use the mutex lock for sf_freelist, the sendfile(2) bufs
freelist. Should now be thread-friendly, in part.

Note: More work is needed in uipc_syscalls.c, but it will have to wait until
the socket locking issues are at least 80% implemented and committed.

23 years agoFix the Elf64 branding initialization.
David E. O'Brien [Sat, 4 Nov 2000 05:04:47 +0000 (05:04 +0000)]
Fix the Elf64 branding initialization.

23 years agoGrammar fix
Gregory Neil Shapiro [Sat, 4 Nov 2000 03:49:13 +0000 (03:49 +0000)]
Grammar fix

Submitted by: asmodai

23 years agov_interlock is a mutex now, not simple lock.
Boris Popov [Sat, 4 Nov 2000 02:42:11 +0000 (02:42 +0000)]
v_interlock is a mutex now, not simple lock.