]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoDon't leave stack garbage in the reserved fields of the header.
Bruce Evans [Fri, 15 Feb 2002 02:37:08 +0000 (02:37 +0000)]
Don't leave stack garbage in the reserved fields of the header.

22 years agoFixed style bugs in rev.1.5:
Bruce Evans [Fri, 15 Feb 2002 02:28:50 +0000 (02:28 +0000)]
Fixed style bugs in rev.1.5:
- missing whitespace
- strange version of warn() built out of warnx() + strerror().  Just use
  warn().
- conversion of just one of the two perror()'s to warn*()

Actually use _warn() instead of _warn(), to keep up with namespace-
unpollution for warn().

22 years agoUnbogotify the comment containing the RCS Id.
Dag-Erling Smørgrav [Fri, 15 Feb 2002 00:46:32 +0000 (00:46 +0000)]
Unbogotify the comment containing the RCS Id.

22 years agoSpell #if 0 correctly
Andrew Gallatin [Thu, 14 Feb 2002 22:29:03 +0000 (22:29 +0000)]
Spell #if 0 correctly

22 years agoPut a more reasonable path for "more" sources in crunch.conf,
Luigi Rizzo [Thu, 14 Feb 2002 19:43:40 +0000 (19:43 +0000)]
Put a more reasonable path for "more" sources in crunch.conf,
and disable telnet and friends in favour of ssh/sshd/scp.

Pull out a few NIC drivers from the config file to make the
image fit into a 1.44 image again. I have left "lnc" in as that is
emulated by vmware so this can be booted there.

22 years agoUse { } instead of ( ) for grouping shell commands so that
Luigi Rizzo [Thu, 14 Feb 2002 19:21:50 +0000 (19:21 +0000)]
Use { } instead of ( ) for grouping shell commands so that
variable assignments are retained ( () creates a subshell)

Reported-by: Michael Bretterklieber <mbretter@inode.at>
22 years agoRemove an unneeded include of sys/sx.h. An older pre-commit version of
John Baldwin [Thu, 14 Feb 2002 18:18:25 +0000 (18:18 +0000)]
Remove an unneeded include of sys/sx.h.  An older pre-commit version of
the filedesc locking used an sx lock for the filedesc lock rather than a
mutex which is why the include was here.

22 years agoPrevent dup2(2) from closing internal libc_r pipe descriptors.
Maxim Konovalov [Thu, 14 Feb 2002 15:26:59 +0000 (15:26 +0000)]
Prevent dup2(2) from closing internal libc_r pipe descriptors.

PR: misc/28947
Reviewed by: jasone, ru
Approved by: jasone, ru
MFC after: 1 week

22 years agoCorrect a typo pthread_attr_setscope() function fails unconditionally
Maxim Konovalov [Thu, 14 Feb 2002 15:20:36 +0000 (15:20 +0000)]
Correct a typo pthread_attr_setscope() function fails unconditionally
due to.

PR: misc/30699
Reviewed by: jasone, ru
Approved by: jasone, ru
MFC after: 1 week

22 years agoThe previous fix for broken -DMAKE_KERBEROS5 world was incomplete.
Ruslan Ermilov [Thu, 14 Feb 2002 13:06:52 +0000 (13:06 +0000)]
The previous fix for broken -DMAKE_KERBEROS5 world was incomplete.
Finish it by adding kerberos5/lib/libvers to the build-tools list.

(I didn't notice it before because I tested my fix in a -DNOCLEAN
environment, and static libc.a was already in ${WORLDTMP}/usr/lib,
and libvers's make-print-version build tool used it for linking.)

Spotted by: John Indra <maverick@office.naver.co.id>

22 years agoFix a bug introduced in rev.1.40 which can cause systems to crash when
Brian Feldman [Thu, 14 Feb 2002 08:22:37 +0000 (08:22 +0000)]
Fix a bug introduced in rev.1.40 which can cause systems to crash when
detaching USB devices.  Specifically, a variable which was not meant
to be reused was, in fact, being reused.

22 years agoRegenerate.
Josef Karthauser [Thu, 14 Feb 2002 03:03:08 +0000 (03:03 +0000)]
Regenerate.

22 years agoSupport the HP 5400C scanner.
Josef Karthauser [Thu, 14 Feb 2002 02:51:12 +0000 (02:51 +0000)]
Support the HP 5400C scanner.

PR: kern/34783

22 years agoMove user_from_uid to pwd.h
Warner Losh [Thu, 14 Feb 2002 01:59:47 +0000 (01:59 +0000)]
Move user_from_uid to pwd.h
Move group_from_gid to grp.h
Remove from stdlib.h
Make the prototypes match the code
Fix rm and mv to include new files.

NetBSD has these defined in those files, and others too that I've not
done.

Approved by: terminal room kabal
Reviewed by: jhb, phk

22 years agoComplete rework of the PowerPC pmap and a number of other bits in the early
Benno Rice [Thu, 14 Feb 2002 01:39:11 +0000 (01:39 +0000)]
Complete rework of the PowerPC pmap and a number of other bits in the early
boot sequence.

The new pmap.c is based on NetBSD's newer pmap.c (for the mpc6xx processors)
which is 70% faster than the older code that the original pmap.c was based
on.  It has also been based on the framework established by jake's initial
sparc64 pmap.c.

There is no change to how far the kernel gets (it makes it to the mountroot
prompt in psim) but the new pmap code is a lot cleaner.

Obtained from: NetBSD (pmap code)

22 years agoIn createfiles(), properly handle a number of cases where no further
Ian Dowse [Thu, 14 Feb 2002 01:30:45 +0000 (01:30 +0000)]
In createfiles(), properly handle a number of cases where no further
volumes are available, instead of getting stuck in a loop calling
getvol(). Normally restore in 'x' or 'i' modes will ask for a new
(earlier) volume when the current inode number on the tape is greater
than the last inode to be restored, since there can be no further
inodes of interest on that volume. However we don't want to change
volumes in this case either if the user explicitly said that there
are no more tapes, or if we are looking at the first volume.

When no more volumes are available but there are still inodes that
we have not found, we now just fall through to the code that prints
out a list of any missing files, so the restore completes normally.
Also simplify the logic a bit by always returning to the start of
the main for(;;) loop whenever the volume has changed.

This should completely fix the "Changing volumes on pipe input" bug
that is often observed when restoring dumps of active filesystems.

PR: bin/4176, bin/34604, misc/34675

22 years agoFixed sign extension bugs in previous commit. They didn't completely
Bruce Evans [Thu, 14 Feb 2002 01:21:23 +0000 (01:21 +0000)]
Fixed sign extension bugs in previous commit.  They didn't completely
break scheduling because negative priorities were most fixed up by
converting kg_pri_user back to the correct type.

Fixed some style bugs in previous commit (non-terminated sentence fragments
and regressions in comments).

22 years agoTypo fix: Usally -> Usually.
Giorgos Keramidas [Thu, 14 Feb 2002 01:21:07 +0000 (01:21 +0000)]
Typo fix: Usally -> Usually.

PR: docs/34918
Submitted by: Harry Newton <harry_newton@telinco.co.uk>

22 years agoRework revision 1.12, and wrap the bmaj entry with an #if doesn't
Josef Karthauser [Thu, 14 Feb 2002 00:35:03 +0000 (00:35 +0000)]
Rework revision 1.12, and wrap the bmaj entry with an #if doesn't
compile it in on FreeBSD-current, but does in all other cases
(-stable, NetBSD, OpenBSD, etc).

22 years agoReinstate revision 1.14. The empty uscannerioctl() was accidently
Josef Karthauser [Thu, 14 Feb 2002 00:32:03 +0000 (00:32 +0000)]
Reinstate revision 1.14.  The empty uscannerioctl() was accidently
re-added during a recent NetBSD merge.

22 years agoDon't confuse a struct with its first member. This fixes:
Bruce Evans [Wed, 13 Feb 2002 21:38:48 +0000 (21:38 +0000)]
Don't confuse a struct with its first member.  This fixes:
./@/i386/i386/machdep.c: In function `init386':
./@/i386/i386/machdep.c:1700: warning: assignment from incompatible pointer type

22 years agoremove superflous empty line (in preparation to MFC)
Max Khon [Wed, 13 Feb 2002 19:36:14 +0000 (19:36 +0000)]
remove superflous empty line (in preparation to MFC)

22 years agoSet rc=1 rather than 0 so that setting daily_show_success=YES masks
Brian Somers [Wed, 13 Feb 2002 19:10:07 +0000 (19:10 +0000)]
Set rc=1 rather than 0 so that setting daily_show_success=YES masks
the output of all goes well.

PR: 34825
Submitted by: Valentin Nechayev <netch@netch.kiev.ua>
MFC after: 3 weeks

22 years agoRe-enable WITNESS for GENERIC. Since the 5.x branch is mostly about
Alfred Perlstein [Wed, 13 Feb 2002 18:47:50 +0000 (18:47 +0000)]
Re-enable WITNESS for GENERIC.  Since the 5.x branch is mostly about
SMP we'd like as much feedback as possible from users about possible
locking problems as early as possible.

To negate most of the performance impact I've also enabled
WITNESS_SKIPSPIN.  I've done this as we've been running WITNESS
over the spinlock code for a while without incident and it goes a
long way to making the performance problems of WITNESS much more
bearable.

Users who should be running current should know about turning WITNESS
off for performance reasons.

That said and done, WITNESS could/should be made into a tuneable,
but we'll leave that as an excersize to those that want to disable
it without a kernel recompile.

22 years ago- Added support for receive in multiple
Prafulla Deuskar [Wed, 13 Feb 2002 18:19:27 +0000 (18:19 +0000)]
- Added support for receive in multiple
  descriptors. This simplifies code for jumbo frames.
- Cleaned up coding conventions to make code more unix-like.
- Cleaned up code in if_em_fxhw.c and if_em_phy.c.
  Added relevant comments.

MFC after: 1 week

22 years agoCorrect comment: mklocale(1) and NLS are absolutely independent
Alexey Zelkin [Wed, 13 Feb 2002 18:18:13 +0000 (18:18 +0000)]
Correct comment: mklocale(1) and NLS are absolutely independent

22 years agoCorrect NLSOWN and NLSGRP values.
Alexey Zelkin [Wed, 13 Feb 2002 18:16:34 +0000 (18:16 +0000)]
Correct NLSOWN and NLSGRP values.

22 years agoCalculate physmem before calling init_param2().
Thomas Moestl [Wed, 13 Feb 2002 17:05:56 +0000 (17:05 +0000)]
Calculate physmem before calling init_param2().

Submitted by: jake

22 years agoAvoid crashing in early boot when WITNESS is enabled by moving the
Thomas Moestl [Wed, 13 Feb 2002 16:36:44 +0000 (16:36 +0000)]
Avoid crashing in early boot when WITNESS is enabled by moving the
mtx_init() for intr_table_lock after the globaldata pointer
initialization.

22 years agoAdd counter.c and sbus.c. Unify style.
Thomas Moestl [Wed, 13 Feb 2002 16:29:51 +0000 (16:29 +0000)]
Add counter.c and sbus.c. Unify style.

22 years agoAdd the counter-timer node to the exclusion list, as it is handled
Thomas Moestl [Wed, 13 Feb 2002 16:28:40 +0000 (16:28 +0000)]
Add the counter-timer node to the exclusion list, as it is handled
specially. While being there, sort that list.

22 years agoUse stxa_sync() when accessing the LSU control register to avoid undefined
Thomas Moestl [Wed, 13 Feb 2002 16:25:33 +0000 (16:25 +0000)]
Use stxa_sync() when accessing the LSU control register to avoid undefined
behaviour.

22 years agoUse stxa_sync() when accessing the diagnostic registers to invalidate
Thomas Moestl [Wed, 13 Feb 2002 16:20:38 +0000 (16:20 +0000)]
Use stxa_sync() when accessing the diagnostic registers to invalidate
caches; this is needed to avoid undefined behaviour.
Clean up a bit.

22 years agoAdd support for the counter-timer which is included in the Sun U2S and
Thomas Moestl [Wed, 13 Feb 2002 16:16:36 +0000 (16:16 +0000)]
Add support for the counter-timer which is included in the Sun U2S and
U2P bridges as a time counter.

22 years agoAdd support for the SBus, which is used in early Sun UltraSPARC machines.
Thomas Moestl [Wed, 13 Feb 2002 16:11:36 +0000 (16:11 +0000)]
Add support for the SBus, which is used in early Sun UltraSPARC machines.
Ported from NetBSD.

22 years agoMerge r1.39 from NetBSD (manage both streaming caches for psycho pairs).
Thomas Moestl [Wed, 13 Feb 2002 16:07:59 +0000 (16:07 +0000)]
Merge r1.39 from NetBSD (manage both streaming caches for psycho pairs).
Use explicit bus space accesses instead of mapping the device memory
into kva.
Fix support for psycho pairs, and catch up with iommu code changes.

22 years agoMerge r1.42 of iommu.c and r1.9 of iommuvar.h from NetBSD (this adds
Thomas Moestl [Wed, 13 Feb 2002 15:59:17 +0000 (15:59 +0000)]
Merge r1.42 of iommu.c and r1.9 of iommuvar.h from NetBSD (this adds
support for managing both streaming caches on psycho pairs).
Use explicit bus space accesses instead of mapping the device memory into
kva.
Move DVMA allocation to the map creation/dma memory allocation functions.

22 years agoClean up bus space debugging support; change sparc64_bus_mem_map() to
Thomas Moestl [Wed, 13 Feb 2002 15:51:57 +0000 (15:51 +0000)]
Clean up bus space debugging support; change sparc64_bus_mem_map() to
take a bus tag and handle as argument instead of a i/o space id and a
physical address, now that nexus handles device memory resource
allocations.

22 years agoDefine constants for the CPU implementation id; export the dectected id
Thomas Moestl [Wed, 13 Feb 2002 15:47:12 +0000 (15:47 +0000)]
Define constants for the CPU implementation id; export the dectected id
as cpu_impl.

22 years agoDon't panic when no interrupt map can be found for a PCI bus; this seems
Thomas Moestl [Wed, 13 Feb 2002 15:44:58 +0000 (15:44 +0000)]
Don't panic when no interrupt map can be found for a PCI bus; this seems
to happen on some models, like the Netra T1.

22 years agoFix typos in a comment.
Thomas Moestl [Wed, 13 Feb 2002 15:43:42 +0000 (15:43 +0000)]
Fix typos in a comment.

22 years agoAdd a few new functions/macros: intr_disable() and intr_restore() to
Thomas Moestl [Wed, 13 Feb 2002 15:40:05 +0000 (15:40 +0000)]
Add a few new functions/macros: intr_disable() and intr_restore() to
disable interrupts completely, and stxa_sync(), which performs a store
immediately followed by a membar #Sync with interrupts disabled (this
is needed for writes to diagnostic registers).

22 years agoMinor bug fixes (add a missing break, correct the resource ranges, remove
Thomas Moestl [Wed, 13 Feb 2002 15:35:22 +0000 (15:35 +0000)]
Minor bug fixes (add a missing break, correct the resource ranges, remove
a memory leak).

22 years ago* Don't SEGFAULT on attempt to write nothing (if no source files were
Alexey Zelkin [Wed, 13 Feb 2002 13:00:33 +0000 (13:00 +0000)]
* Don't SEGFAULT on attempt to write nothing (if no source files were
specified)
* Don't print currline if it's NULL

MFC after: 3 days

22 years agoFix a number of long-standing restore bugs in tape.c, mainly relating
Ian Dowse [Wed, 13 Feb 2002 12:06:58 +0000 (12:06 +0000)]
Fix a number of long-standing restore bugs in tape.c, mainly relating
to multi-volume restores:
 - In findinode(), keep a copy of header->c_type so that we don't
   exit the do-while loop until we have processed the current header.
   Exiting too early leaves curfile.ino set to 0, which confuses
   the logic in createfiles(), so multi-volume restores with the
   'x' command don't work if you follow the instructions and supply
   the tapes in reverse order.  This appears to have been broken
   by CSRG revision 5.33 tape.c (Oct 1992).
 - The logic in getvol() for deciding how many records to skip after
   the volume header was confused; sometimes it would skip too few
   records and sometimes too many, leading to "resync restore"
   warnings and missing files. Skip to the next header only when
   the current action is not `USING'. Work around a dump bug that
   sets c_count incorrectly in the volume header of the first tape.
   Some of the problems here date back to at least 1991.
 - Back out revision 1.23. This appeared to avoid warnings about
   missing files in the 'rN' verification case, but it made the
   problems with the 'x' command worse by stopping getvol() from
   even attempting to find the first inode number on the newly
   inserted tape. The bug it addressed is fixed by correcting the
   skipping logic as described above.
 - Save the value of `tpblksread' in case the wrong volume is
   supplied, because it is incremented each time we read a volume
   header. We already saved `blksread' for the same reson.

22 years agoRevert 1.29. It breaks the build. Will figure out a better way to do
Warner Losh [Wed, 13 Feb 2002 10:11:38 +0000 (10:11 +0000)]
Revert 1.29.  It breaks the build.  Will figure out a better way to do
this that doesn't break things.

22 years agoMake the user_from_uid and group_from_gid prototypes match the actual
Warner Losh [Wed, 13 Feb 2002 09:33:00 +0000 (09:33 +0000)]
Make the user_from_uid and group_from_gid prototypes match the actual
function definitions.

22 years agoUse new-style function declations.
Warner Losh [Wed, 13 Feb 2002 09:30:47 +0000 (09:30 +0000)]
Use new-style function declations.

22 years agoFix infinite loop around sendfile(2) after sending >4GB file.
Maxim Konovalov [Wed, 13 Feb 2002 09:00:05 +0000 (09:00 +0000)]
Fix infinite loop around sendfile(2) after sending >4GB file.

PR: bin/33770
Submitted by: Vladislav Shabanov <vs@rambler-co.ru>
Reviewed by: ru
Approved by: ru
MFC after: 1 month

22 years agoRemove unnecessary setjmp.h.
Maxim Konovalov [Wed, 13 Feb 2002 08:49:29 +0000 (08:49 +0000)]
Remove unnecessary setjmp.h.

Reviewed by: ru
Approved by: ru
Obtained from: OpenBSD
MFC after: 1 week

22 years agoUnlink all log sockets at startup.
Maxim Konovalov [Wed, 13 Feb 2002 08:37:55 +0000 (08:37 +0000)]
Unlink all log sockets at startup.

PR: misc/34839
Reviewed by: ru
Approved by: ru
Obtained from: OpenBSD
MFC after: 2 weeks

22 years agoFix a typo in swat example.
Maxim Konovalov [Wed, 13 Feb 2002 08:21:45 +0000 (08:21 +0000)]
Fix a typo in swat example.

Spotted by: Sergey Osokin <osa@freebsd.org.ru>
Reviewed by: ru
Approved by: ru
MFC after: 1 week

22 years agoRemove WITNESS from GENERIC by default: as we grow more locks, this gets
Robert Watson [Wed, 13 Feb 2002 07:44:59 +0000 (07:44 +0000)]
Remove WITNESS from GENERIC by default: as we grow more locks, this gets
slower, and may be impeding adoption of -CURRENT by developers.  We
recommend turning on WITNESS by default on crash boxes, and when doing
locking development.  It will probably get turned on by default for a week
or two following any major locking commits, also.

Approved by: all and sundry (jhb, phk, ...)

22 years agoAdd ID's for a couple of upcoming cards.
Scott Long [Wed, 13 Feb 2002 07:44:43 +0000 (07:44 +0000)]
Add ID's for a couple of upcoming cards.

MFC after: 1 day

22 years agoForced commit; the previous bug-fix commit was..
Archie Cobbs [Wed, 13 Feb 2002 01:01:11 +0000 (01:01 +0000)]
Forced commit; the previous bug-fix commit was..

Submitted by: John Wiersema <J.Wiersema@flarion.com>

22 years agoFix another bug in handling of multi-link sequence numbers.
Archie Cobbs [Wed, 13 Feb 2002 00:58:49 +0000 (00:58 +0000)]
Fix another bug in handling of multi-link sequence numbers.

MFC after: 1 week

22 years ago I THINK this fixes 'make world'
Julian Elischer [Wed, 13 Feb 2002 00:10:04 +0000 (00:10 +0000)]
 I THINK  this fixes 'make world'
 I'll know as soon as I re-import it and compile it.. :-)
 There is no longer a 'pri' strict in the proc struct.
 the fields are scattered between the ksegrp and thread in question.

22 years ago^U kills an entire input line in most applications,
Yaroslav Tykhiy [Tue, 12 Feb 2002 23:38:40 +0000 (23:38 +0000)]
^U kills an entire input line in most applications,
including the default terminal canonical mode.
So let ddb(4) be no exception from this rule.

Pointed out by: Mark Peek <mark@peek.org>

22 years agoAdd an option CPU_ATHLON_SSE_HACK which attempts to enable the SSE
David Malone [Tue, 12 Feb 2002 21:13:02 +0000 (21:13 +0000)]
Add an option CPU_ATHLON_SSE_HACK which attempts to enable the SSE
feature bit on newer Athlon CPUs if the BIOS has forgotten to enable
it.

This patch was constructed using some info made available by John
Clemens at http://www.deater.net/john/PavilionN5430.html

Reviewed by: -audit
MFC after: 3 weeks

22 years agoMove do_cpuid() from a identcpu.c into cpufunc.h.
David Malone [Tue, 12 Feb 2002 21:06:48 +0000 (21:06 +0000)]
Move do_cpuid() from a identcpu.c into cpufunc.h.

22 years agoUnbreak nl_BE locales
Alexey Zelkin [Tue, 12 Feb 2002 18:40:57 +0000 (18:40 +0000)]
Unbreak nl_BE locales

Found by: tools/diag/localeck

22 years agoFix bug in previous commit.
Archie Cobbs [Tue, 12 Feb 2002 18:33:10 +0000 (18:33 +0000)]
Fix bug in previous commit.

Submitted by: Harti Brandt <brandt@fokus.gmd.de>

22 years agoUnbreak fr_BE locale
Alexey Zelkin [Tue, 12 Feb 2002 18:23:21 +0000 (18:23 +0000)]
Unbreak fr_BE locale

Found by: tools/diag/localeck

22 years agoUnbreak it_CH locale
Alexey Zelkin [Tue, 12 Feb 2002 18:04:15 +0000 (18:04 +0000)]
Unbreak it_CH locale

Found by: tools/diag/localeck

22 years agoAdd support for the Linksys WMP-11, Prism 2.5, PCI adaptor.
Brooks Davis [Tue, 12 Feb 2002 17:52:11 +0000 (17:52 +0000)]
Add support for the Linksys WMP-11, Prism 2.5, PCI adaptor.

Submitted by: Thomas Skibo <skibo@pacbell.net>
MFC after: 2 weeks

22 years agoUnbreak fr_CH locale
Alexey Zelkin [Tue, 12 Feb 2002 17:51:48 +0000 (17:51 +0000)]
Unbreak fr_CH locale

Found by: tools/diag/localeck

22 years ago o Clearing p/td_retval[0] after aio_newproc() is unnecessary. (We stopped
Alan Cox [Tue, 12 Feb 2002 17:40:41 +0000 (17:40 +0000)]
 o Clearing p/td_retval[0] after aio_newproc() is unnecessary.  (We stopped
   calling rfork() to create aio threads in revision 1.46.)
 o Don't recompute the FILE * when it's already stored in the kernel's AIOCB.

22 years agoDon't refer to findinode()'s `complain' parameter in a comment; it
Ian Dowse [Tue, 12 Feb 2002 17:15:45 +0000 (17:15 +0000)]
Don't refer to findinode()'s `complain' parameter in a comment; it
was removed in 1986.

22 years agoAdd support for the Cenatek Rocket Drive.
Søren Schmidt [Tue, 12 Feb 2002 16:59:28 +0000 (16:59 +0000)]
Add support for the Cenatek Rocket Drive.

22 years agoMkdir ${CHROOTDIR}/usr/ports/distfiles if RELEASEDISTFILES is not set.
Makoto Matsushita [Tue, 12 Feb 2002 16:56:06 +0000 (16:56 +0000)]
Mkdir ${CHROOTDIR}/usr/ports/distfiles if RELEASEDISTFILES is not set.
We ensure that 'ports.tgz' tarball should have ports/distfiles directory.

At first, ${CHROOTDIR}/usr/ports is empty (rm -rf ports), then extract
ports files from CVS repository.  Then if RELEASEDISTFILES is defined,
${CHROOTDIR}/usr/ports/distfiles directory is created by cp(1).  However,
if you don't specify RELEASEDISTFILES, there is no chance to create
${CHROOTDIR}/usr/ports/distfiles directory.

Submitted by: {ushi,tora}.jp.FreeBSD.org
MFC after: 5 days

22 years agoFix buglets in the ATAPI resume code.
Søren Schmidt [Tue, 12 Feb 2002 13:21:51 +0000 (13:21 +0000)]
Fix buglets in the ATAPI resume code.

This also fixes an old bug where some ATAPI devices went into
funny mode on an 'atacontrol reinit' command.

22 years agoMFi386: revision 1.164
Yoshihiro Takahashi [Tue, 12 Feb 2002 13:21:32 +0000 (13:21 +0000)]
MFi386: revision 1.164

22 years agoMFi386: revision 1.391
Yoshihiro Takahashi [Tue, 12 Feb 2002 13:21:13 +0000 (13:21 +0000)]
MFi386: revision 1.391

22 years agoMajor update of the ATA RAID code, part 2:
Søren Schmidt [Tue, 12 Feb 2002 11:35:15 +0000 (11:35 +0000)]
Major update of the ATA RAID code, part 2:

More cleanups of the RAID1 failure mode code.

Add functionality that writes the changed RAID config setup
back to the disks (in controller BIOS specific format), so
that a reboot will make the BIOS pick up the changed config.

22 years ago* Update (c)
Doug Barton [Tue, 12 Feb 2002 09:54:56 +0000 (09:54 +0000)]
* Update (c)
* Fix a problem with files that have no CVS $Id's. Thanks to naddy for
spotting this one. It wasn't a _huge_ problem since almost all the files
we install (except motd) have one, but still, it's a bug.
* Add a divider between diff outputs, which is helpful both for logs,
and for giving a good visual clue for diffs that are smaller than
$LINES. Another helpful suggestion from Gary W. Swearingen, swear@blarg.net.

22 years ago* Update (c)
Doug Barton [Tue, 12 Feb 2002 09:50:16 +0000 (09:50 +0000)]
* Update (c)
* Expand on the definition of the -s (strict) option, at the suggestion
of Gary W. Swearingen, swear@blarg.net.

22 years agoRemove an unused (but initialized) variable from vmapbuf().
Alan Cox [Tue, 12 Feb 2002 05:50:43 +0000 (05:50 +0000)]
Remove an unused (but initialized) variable from vmapbuf().

22 years agoTwo fixes from Jonathan Hanna:
Warner Losh [Tue, 12 Feb 2002 05:32:58 +0000 (05:32 +0000)]
Two fixes from Jonathan Hanna:
1) We shouldn't continue when we get a RX complete because we ack it
   and the TX complete.
2) Fix a couple of spl leaks
(why splbio is needed in ISR, I cannot understand).

MFC after: 3 days

22 years agoInstall complete.tcsh and csh-mode.el into ${SHAREDIR}/examples/tcsh.
Mark Peek [Tue, 12 Feb 2002 04:50:12 +0000 (04:50 +0000)]
Install complete.tcsh and csh-mode.el into ${SHAREDIR}/examples/tcsh.

PR: misc/34800 (from Steven Grady)
Submitted by: phantom (patch)
MFC after: 3 days

22 years agoThe previous commit included a change to fill_kinfo_proc() that results
Alan Cox [Tue, 12 Feb 2002 04:21:28 +0000 (04:21 +0000)]
The previous commit included a change to fill_kinfo_proc() that results
in a NULL pointer dereference.  Repair this mistake.

22 years agoWhen a duplicate SYN arrives which matches an entry in the syncache,
Jonathan Lemon [Tue, 12 Feb 2002 02:03:50 +0000 (02:03 +0000)]
When a duplicate SYN arrives which matches an entry in the syncache,
update our lazy reference to the inpcb structure, as it may have changed.

Found by: dima

22 years agoDon't claim to have routed an interrupt when the method actually returned an
Mike Smith [Tue, 12 Feb 2002 01:28:49 +0000 (01:28 +0000)]
Don't claim to have routed an interrupt when the method actually returned an
error.

22 years agoEnable polling to be configured into kernels on non i386 platforms. Note that
Andrew Gallatin [Tue, 12 Feb 2002 00:26:06 +0000 (00:26 +0000)]
Enable polling to be configured into kernels on non i386 platforms.  Note that
poll_in_trap is only implemented on i386.  I've tested this on alpha.

Approved by: luigi

22 years agoMFS: synchronize the code with the version in -stable, specifically:
Luigi Rizzo [Mon, 11 Feb 2002 23:56:18 +0000 (23:56 +0000)]
MFS: synchronize the code with the version in -stable, specifically:
 + SYSCTL_ULONG -> SYSCTL_UINT
 + some procedure renaming and variable rearrangement
 + fix the 'interface going deaf' problem same as in -stable.

22 years agoRemove mbuf exhaustion warning messages; these are handled by the
Mike Silbersack [Mon, 11 Feb 2002 23:38:30 +0000 (23:38 +0000)]
Remove mbuf exhaustion warning messages; these are handled by the
mbuf system in a rate-limited fashion now.

MFC after: 3 days

22 years agoRemove mbuf exhaustion warning messages; these are handled by the
Mike Silbersack [Mon, 11 Feb 2002 23:29:15 +0000 (23:29 +0000)]
Remove mbuf exhaustion warning messages; these are handled by the
mbuf system in a rate-limited fashion now.

MFC: Already performed due to sloppiness.

22 years agoMove makeobjops to /sys so we don't have to deal with the config(8)-like
David E. O'Brien [Mon, 11 Feb 2002 23:06:28 +0000 (23:06 +0000)]
Move makeobjops to /sys so we don't have to deal with the config(8)-like
versioning.

22 years agoRevert rev 1.211, kernel building assistants should live in /sys
David E. O'Brien [Mon, 11 Feb 2002 23:04:56 +0000 (23:04 +0000)]
Revert rev 1.211, kernel building assistants should live in /sys

22 years agoRemove unused bits.
David E. O'Brien [Mon, 11 Feb 2002 22:17:08 +0000 (22:17 +0000)]
Remove unused bits.

22 years agoTurn on makeobjops.
David E. O'Brien [Mon, 11 Feb 2002 22:09:20 +0000 (22:09 +0000)]
Turn on makeobjops.

22 years agoReplace makeobjops.pl in kernel building.
David E. O'Brien [Mon, 11 Feb 2002 22:08:51 +0000 (22:08 +0000)]
Replace makeobjops.pl in kernel building.

Submitted by: Diane Bruce <db@db.net>

22 years agoIn a threaded world, differnt priorirites become properties of
Julian Elischer [Mon, 11 Feb 2002 20:37:54 +0000 (20:37 +0000)]
In  a threaded world, differnt priorirites become properties of
different entities.  Make it so.

Reviewed by: jhb@freebsd.org (john baldwin)

22 years agoRepo-copied `src/bin/pwd/realpath.1' to `src/bin/realpath/realpath.1',
Mike Barcroft [Mon, 11 Feb 2002 18:45:29 +0000 (18:45 +0000)]
Repo-copied `src/bin/pwd/realpath.1' to `src/bin/realpath/realpath.1',
as part of the move to seperate realpath(1) into its own directory.

22 years agoo Remove old code from pwd(1); realpath(1) is now in its own directory.
Mike Barcroft [Mon, 11 Feb 2002 18:38:54 +0000 (18:38 +0000)]
o Remove old code from pwd(1); realpath(1) is now in its own directory.
o Fix some unordered includes in pwd(1).
o Connect realpath(1) to the build.

22 years agoFixed -DMAKE_KERBEROS5 world breakage in kerberos5/lib/libroken
Ruslan Ermilov [Mon, 11 Feb 2002 16:47:05 +0000 (16:47 +0000)]
Fixed -DMAKE_KERBEROS5 world breakage in kerberos5/lib/libroken
(make-roken is a build tool).  This bug was hiding itself after
a just fixed bug in cross-linker (binutuils/ld/Makefile,v 1.20).

The bug was fatal for cross builds; for example, an alpha binary
(make-roken) was attempted to be run on i386.

Added make-roken to the list of build-tools in libasn1.  It only
worked because another build tool needs make-roken implicitly:

(build-tools: asn1_compile: print_version.o: roken.h: make-roken).

Spotted by: nectar

22 years agoAdd support for the HighPoint HPT374 4 channel ATA chip.
Søren Schmidt [Mon, 11 Feb 2002 15:48:04 +0000 (15:48 +0000)]
Add support for the HighPoint HPT374 4 channel ATA chip.

Sponsored by: Isilon Systems.

22 years agoFound a single point where rmuser(8) wasn't robust to strange
Yaroslav Tykhiy [Mon, 11 Feb 2002 15:26:20 +0000 (15:26 +0000)]
Found a single point where rmuser(8) wasn't robust to strange
characters in a username:  where it was inserted into a regexp.
Fix it by escaping metacharacters in the name with \Q-\E.

22 years agoFix some bugs in the ohci driver with respect to irq setup failure.
Josef Karthauser [Mon, 11 Feb 2002 14:39:57 +0000 (14:39 +0000)]
Fix some bugs in the ohci driver with respect to irq setup failure.

Submitted by: nyan

22 years agoCorrect an out of date device node name. We do not have /dev/rsd0.ctl
Maxim Konovalov [Mon, 11 Feb 2002 14:35:28 +0000 (14:35 +0000)]
Correct an out of date device node name. We do not have /dev/rsd0.ctl
nowadays.

Spotted by: Sergey Osokin <osa@freebsd.org.ru>
Reviewed by: ken, ru
Approved by: ken, ru
MFC after: 1 week

22 years agoTeach ddb(4) to delete to the beginning of its command line on ^U.
Yaroslav Tykhiy [Mon, 11 Feb 2002 14:14:42 +0000 (14:14 +0000)]
Teach ddb(4) to delete to the beginning of its command line on ^U.

PR: kern/28976
Submitted by: Nickolai Zeldovich <kolya@orbit.zepa.net>