]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoAdd script to install the compat4x distribution, just like other
matusita [Fri, 26 Apr 2002 13:33:46 +0000 (13:33 +0000)]
Add script to install the compat4x distribution, just like other
compat*-install.sh scripts.

PR: 37485
MFC after: 5 days

22 years agoMove the winding of timecounters out of hardclock and into a normal
phk [Fri, 26 Apr 2002 12:37:36 +0000 (12:37 +0000)]
Move the winding of timecounters out of hardclock and into a normal
timeout loop.

Limit the rate at which we wind the timecounters to approx 1000 Hz.

This limits the precision of the get{bin,nano,micro}[up]time(9)
functions to roughly a millisecond.

22 years agoCorrect indent.
ume [Fri, 26 Apr 2002 12:27:55 +0000 (12:27 +0000)]
Correct indent.

22 years agoBackout copyright notice I broke by my previous commit.
ume [Fri, 26 Apr 2002 12:16:34 +0000 (12:16 +0000)]
Backout copyright notice I broke by my previous commit.

22 years agoAdd termcap entries to be able to switch to line drawing character
hm [Fri, 26 Apr 2002 11:17:46 +0000 (11:17 +0000)]
Add termcap entries to be able to switch to line drawing character
set for the pcvt driver.

22 years agoThere is no host called new.bbc.co.uk - fix url.
ceri [Fri, 26 Apr 2002 10:58:06 +0000 (10:58 +0000)]
There is no host called new.bbc.co.uk - fix url.

Reviewed by: jkh
Approved by: jkh, murray
MFC after: 3 days

22 years agoVarious cleanup and sorting of clock reading functions. Add the two
phk [Fri, 26 Apr 2002 10:19:29 +0000 (10:19 +0000)]
Various cleanup and sorting of clock reading functions.  Add the two
functions missing in the complete 12 function complement.

22 years agoRename tco_setscales() and tco_delta() to use the same tc_ prefix as
phk [Fri, 26 Apr 2002 10:11:02 +0000 (10:11 +0000)]
Rename tco_setscales() and tco_delta() to use the same tc_ prefix as
the rest of this file.

22 years agoRemove the tc_update() function. Any frequency change to the
phk [Fri, 26 Apr 2002 10:06:26 +0000 (10:06 +0000)]
Remove the tc_update() function.  Any frequency change to the
timecounter will be used starting at the next second, which is
good enough for sysctl purposes.  If better adjustment is needed
the NTP PLL should be used.

22 years agoTest if rootvnode is NULL rather than if rootdev is NODEV when determining
brian [Fri, 26 Apr 2002 09:52:54 +0000 (09:52 +0000)]
Test if rootvnode is NULL rather than if rootdev is NODEV when determining
if there's a filesystem present.

rootdev can be NODEV in the NFS-mounted root scenario.

Discussed with: Harti Brandt <brandt@fokus.gmd.de>, iedowse

22 years agoRemoved some cruft.
ru [Fri, 26 Apr 2002 07:40:08 +0000 (07:40 +0000)]
Removed some cruft.

22 years agoAdd a -k option to reboot to specify the kernel to boot next time
wes [Fri, 26 Apr 2002 07:31:04 +0000 (07:31 +0000)]
Add a -k option to reboot to specify the kernel to boot next time
around.  If the kernel boots successfully, the record of this kernel
is erased, it is intended to be a one-shot option for testing
kernels.

This could be improved by having the loader remove the record of
the next kernel to boot, it is currently removed in /etc/rc immediately
after disks are mounted r/w.

I'd like to MFC this before the 4.6 freeze unless there is violent
objection.

Reviewed by: Several on IRC
MFC after: 4 days

22 years agovinum_open: recognize twed device.
grog [Fri, 26 Apr 2002 04:23:19 +0000 (04:23 +0000)]
vinum_open: recognize twed device.

Submitted by: Holger Kipp <holger.kipp@alogis.com>
PR: 37458
MFC after:  5 days
(to get 4.6 code freeze)

22 years agovinum_start: examine storage array devices, not just disks.
grog [Fri, 26 Apr 2002 04:21:59 +0000 (04:21 +0000)]
vinum_start: examine storage array devices, not just disks.

Submitted by: Holger Kipp <holger.kipp@alogis.com>
PR: 37458
MFC after:  5 days
(to get 4.6 code freeze)

22 years agoAdd UDF to the list of filesystems where locking assertions should be
rwatson [Fri, 26 Apr 2002 04:06:08 +0000 (04:06 +0000)]
Add UDF to the list of filesystems where locking assertions should be
evaluated.

Approved by: scottl

22 years agoUIO_NOCOPY is not supported for now, so refuse read opeartion if this flag
bp [Fri, 26 Apr 2002 03:49:02 +0000 (03:49 +0000)]
UIO_NOCOPY is not supported for now, so refuse read opeartion if this flag
is set. The full emulation of bio are on its way...

22 years ago1.43 (dfr 04-Apr-97): /*
rwatson [Fri, 26 Apr 2002 03:39:04 +0000 (03:39 +0000)]
1.43         (dfr      04-Apr-97): /*
1.43         (dfr      04-Apr-97):  * [dfr] Kludge until I get around to fixing all the vfs locking.
1.43         (dfr      04-Apr-97):  */

The new devfs doesn't support VFS locking.  So don't do locking
assertions for devfs vnodes.

With this change, a kernel with options DEBUG_VFS_LOCKS actually
gets to single-user mode.

Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs

22 years agoMake sure that sockets undergoing accept filtering are aborted in a
silby [Fri, 26 Apr 2002 02:07:46 +0000 (02:07 +0000)]
Make sure that sockets undergoing accept filtering are aborted in a
LRU fashion when the listen queue fills up.  Previously, there was
no mechanism to kick out old sockets, leading to an easy DoS of
daemons using accept filtering.

Reviewed by: alfred
MFC after: 3 days

22 years agoFix a really dumb bug (missing curly braces around the body of an if
des [Fri, 26 Apr 2002 01:47:48 +0000 (01:47 +0000)]
Fix a really dumb bug (missing curly braces around the body of an if
statement) that caused pam_sm_chauthtok() to always fail silently.

22 years agoSome minor nits exposed by the Open Group's VSC Lite verification suite:
tjr [Thu, 25 Apr 2002 23:04:52 +0000 (23:04 +0000)]
Some minor nits exposed by the Open Group's VSC Lite verification suite:
- When an error occurs processing one file, we must continue to process
  the remaining files.
- Convert trailing whitespace to tabs as appropriate.
- Align backspace handling with what the verification suite expects.

Reviewed by: mike

22 years agoAdd the mutex profiling lock to the witness list. This hopefully unbreaks
des [Thu, 25 Apr 2002 22:48:40 +0000 (22:48 +0000)]
Add the mutex profiling lock to the witness list.  This hopefully unbreaks
the MUTEX_PROFILING + WITNESS + !WITNESS_SKIPSPIN case.

Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>

22 years agoFixed some longstanding bugs in _getenv_static():
bde [Thu, 25 Apr 2002 20:25:15 +0000 (20:25 +0000)]
Fixed some longstanding bugs in _getenv_static():
- malformed environment strings (ones without an '=') were not rejected.
  There shouldn't be any of these, but when the static environment is
  empty it always begins with one of these; this one should be considered
  as the terminator after the end of the environment, but it isn't.
- the comparison of the name being looked up with the name in the
  environment was fuzzy -- only the characters up to the length of the
  latter were compared, so _getenv_static("foobar") matched "foo=..."
  in the environment and everything matched "" in the empty environment.

MFC after: 3 days

22 years agoSort.
wollman [Thu, 25 Apr 2002 19:31:43 +0000 (19:31 +0000)]
Sort.

22 years agoSpell Fred Brooks's name right.
wollman [Thu, 25 Apr 2002 19:27:40 +0000 (19:27 +0000)]
Spell Fred Brooks's name right.

22 years agoResort and suppress dupes.
wollman [Thu, 25 Apr 2002 19:12:30 +0000 (19:12 +0000)]
Resort and suppress dupes.

22 years agoAdd a few more aphorisms.
wollman [Thu, 25 Apr 2002 18:53:41 +0000 (18:53 +0000)]
Add a few more aphorisms.

22 years agoNew release notes: xe can be built as a module, ng_eiface, many new
bmah [Thu, 25 Apr 2002 18:35:07 +0000 (18:35 +0000)]
New release notes:  xe can be built as a module, ng_eiface, many new
PAM modules noted.

While here, fix a markup bogon in a recent patch(1) note.

22 years agoImplement true multicast filtering.
semenu [Thu, 25 Apr 2002 18:16:15 +0000 (18:16 +0000)]
Implement true multicast filtering.

Inspired by: dc(4)

MFC after: 1 week

22 years ago#include <string.h> instead of <strings.h>
des [Thu, 25 Apr 2002 18:14:39 +0000 (18:14 +0000)]
#include <string.h> instead of <strings.h>

22 years agoThe official name for McKinley is: Itanium 2
marcel [Thu, 25 Apr 2002 17:51:43 +0000 (17:51 +0000)]
The official name for McKinley is: Itanium 2

22 years agoBack out previous commit.
des [Thu, 25 Apr 2002 16:53:25 +0000 (16:53 +0000)]
Back out previous commit.

22 years agoGrmf. I really didn't want to do this, but it seems to be the only way
des [Thu, 25 Apr 2002 16:43:58 +0000 (16:43 +0000)]
Grmf.  I really didn't want to do this, but it seems to be the only way
to keep people honest.

22 years agoNote change for FreeBSD-SA-02:23.stdio.
nectar [Thu, 25 Apr 2002 14:42:26 +0000 (14:42 +0000)]
Note change for FreeBSD-SA-02:23.stdio.

22 years agoMFi386: revision 1.339.
nyan [Thu, 25 Apr 2002 13:32:56 +0000 (13:32 +0000)]
MFi386: revision 1.339.

22 years agoMFi386: revision 1.56
nyan [Thu, 25 Apr 2002 13:31:27 +0000 (13:31 +0000)]
MFi386: revision 1.56

22 years agoMFi386: revision 1.8
nyan [Thu, 25 Apr 2002 13:28:10 +0000 (13:28 +0000)]
MFi386: revision 1.8

22 years agoMerged from sys/dev/syscons/syscons.c revision 1.383
nyan [Thu, 25 Apr 2002 13:25:36 +0000 (13:25 +0000)]
Merged from sys/dev/syscons/syscons.c revision 1.383

22 years agoBreak the following implementation of panic(3):
bde [Thu, 25 Apr 2002 13:17:33 +0000 (13:17 +0000)]
Break the following implementation of panic(3):

#!bin/sh

# Original version of this by Michael Reifenberger
# <root@nihil.plaut.de>.

mdconfig -d -u 11 >/dev/null 2>&1
dd if=/dev/zero of=zz bs=1m count=1

while :
do
mdconfig -a -t vnode -f zz -u 11
fdisk -f - -iv /dev/md11 <<EOF1
g c1 h64 s32
p 1 165 0 2048
a 1
EOF1
mdconfig -d -u 11
done

Garbage pointers in __si_u were not cleared by destroy_dev().  Not
clearing si_disk made the above fatal because the disk layer uses
si_disk as a flag to indicate that the dev_t has been completely
initialized.  disk_destroy() clears si_disk for the parent dev_t
but doesn't get called for children.

Not fixed:
- setting the undocumented sysctl debug.free_devt should cause more
  complete destruction of the dev_t including clearing of __si_u, but
  actually causes the above to panic a little earlier.
- the loop leaks 10 memory allocations per iteration (4 DEVFS, 2 devbuf
  and 4 dev_t).

Reviewed by: timeout by MAINTAINER after 3 months

22 years agoAdd a power exceeded debug message.
joe [Thu, 25 Apr 2002 12:58:30 +0000 (12:58 +0000)]
Add a power exceeded debug message.
Update the $NetBSD$ ident to match reality.

22 years agoMFNetBSD:
joe [Thu, 25 Apr 2002 12:51:08 +0000 (12:51 +0000)]
MFNetBSD:
    revision 1.96
    date: 2001/11/22 21:59:33;  author: augustss;  state: Exp;  lines: +3 -3
    Correct a comment.

22 years agoMFNetBSD:
joe [Thu, 25 Apr 2002 12:49:38 +0000 (12:49 +0000)]
MFNetBSD:
    revision 1.95
    date: 2001/11/20 16:09:01;  author: augustss;  state: Exp;  lines: +39 -6
    Sanity check max packet lengths.

22 years agoMFNetBSD:
joe [Thu, 25 Apr 2002 12:37:55 +0000 (12:37 +0000)]
MFNetBSD:
    revision 1.94
    date: 2001/11/20 13:50:07;  author: augustss;  state: Exp;  lines: +16 -9
    Update for new speed handling.

22 years agoReplaced hacks in previous revision with the "standard" way of
ru [Thu, 25 Apr 2002 10:23:10 +0000 (10:23 +0000)]
Replaced hacks in previous revision with the "standard" way of
building internal libraries.  This also unbreaks this makefile
after recent share/mk changes.

22 years agoInclude <netinet/in.h> to squash one more compile-time warning.
gad [Thu, 25 Apr 2002 07:41:49 +0000 (07:41 +0000)]
Include <netinet/in.h> to squash one more compile-time warning.

MFC after: 3 days

22 years ago- Fix a round down bogon in uma_zone_set_max().
arr [Thu, 25 Apr 2002 06:24:40 +0000 (06:24 +0000)]
- Fix a round down bogon in uma_zone_set_max().

Submitted by: jeff@

22 years agoChange default challenge/response behavior of sshd by popular demand.
jkh [Thu, 25 Apr 2002 05:59:53 +0000 (05:59 +0000)]
Change default challenge/response behavior of sshd by popular demand.
This brings us into sync with the behavior of sshd on other Unix platforms.

Submitted by: Joshua Goodall <joshua@roughtrade.net>

22 years agoWhen using %p to print out pointers to struct's, first cast the values
gad [Thu, 25 Apr 2002 05:46:44 +0000 (05:46 +0000)]
When using %p to print out pointers to struct's, first cast the values
to (void *) to satisfy some stricter warning-level checks in the new
gcc (on sparc64).

Reviewed by: obrien
MFC after: 4 days

22 years agoNew release notes: se driver, ofw driver, ispppcontrol(8) removed,
bmah [Thu, 25 Apr 2002 04:03:01 +0000 (04:03 +0000)]
New release notes:  se driver, ofw driver, ispppcontrol(8) removed,
fold(1) -b/-s, killall(1) -z, lpd(8) -s, patch(1) -i, pr(1) -f/-b,
renice(1) -n, tftp(1)/tftpd(8) IPv6 support.

Updated release notes:  FICL 3.02, IPFilter 3.4.26.

22 years agoresolve conflicts from import
darrenr [Thu, 25 Apr 2002 03:36:26 +0000 (03:36 +0000)]
resolve conflicts from import

22 years agoThis commit was generated by cvs2svn to compensate for changes in r95421,
darrenr [Thu, 25 Apr 2002 03:34:27 +0000 (03:34 +0000)]
This commit was generated by cvs2svn to compensate for changes in r95421,
which included commits to RCS files with non-trunk default branches.

22 years agoImport IPFilter 3.4.26
darrenr [Thu, 25 Apr 2002 03:34:27 +0000 (03:34 +0000)]
Import IPFilter 3.4.26

22 years agoThis commit was generated by cvs2svn to compensate for changes in r95419,
darrenr [Thu, 25 Apr 2002 03:34:26 +0000 (03:34 +0000)]
This commit was generated by cvs2svn to compensate for changes in r95419,
which included commits to RCS files with non-trunk default branches.

22 years agoImport IPFilter 3.4.26
darrenr [Thu, 25 Apr 2002 03:34:26 +0000 (03:34 +0000)]
Import IPFilter 3.4.26

22 years agobring in changes from 3.4.26.
darrenr [Thu, 25 Apr 2002 03:31:39 +0000 (03:31 +0000)]
bring in changes from 3.4.26.

22 years agoThis commit was generated by cvs2svn to compensate for changes in r95415,
darrenr [Thu, 25 Apr 2002 03:23:53 +0000 (03:23 +0000)]
This commit was generated by cvs2svn to compensate for changes in r95415,
which included commits to RCS files with non-trunk default branches.

22 years agoImport IPFilter 3.4.26 kernel sources, including H.323 proxy.
darrenr [Thu, 25 Apr 2002 03:23:53 +0000 (03:23 +0000)]
Import IPFilter 3.4.26 kernel sources, including H.323 proxy.
Include the licence file for both IPFilter and the H.323 proxy (from QNX),
for convienence.

22 years agoImport IPFilter 3.4.26 kernel sources, including H.323 proxy.
darrenr [Thu, 25 Apr 2002 03:23:52 +0000 (03:23 +0000)]
Import IPFilter 3.4.26 kernel sources, including H.323 proxy.
Include the licence file for both IPFilter and the H.323 proxy (from QNX),
for convienence.

22 years agoAdd some of uncontroversial fortunes from my files.
wollman [Thu, 25 Apr 2002 03:20:27 +0000 (03:20 +0000)]
Add some of uncontroversial fortunes from my files.

22 years agoWarnings about single user and kldxref
imp [Thu, 25 Apr 2002 02:14:48 +0000 (02:14 +0000)]
Warnings about single user and kldxref

22 years agoDon't use the symbol name to lookup the symbol value when we can use
marcel [Thu, 25 Apr 2002 01:22:16 +0000 (01:22 +0000)]
Don't use the symbol name to lookup the symbol value when we can use
the symbol index defined by the relocation. The elf_lookup() support
function is to be used by elf_reloc() when symbol lookups need to be
done. The elf_lookup() function operates on the symbol index and
will do a symbol name based lookup when such is required, otherwise
it uses the symbol index directly. This solves the problem seen on
ia64 where the symbol hash table does not contain local symbols and
a symbol name based lookup would fail for those symbols.

Don't pass the symbol name to elf_reloc(), as it isn't used any more.

22 years agoHandle numbers larger than QUAD_MAX for unsigned conversions correctly.
tjr [Thu, 25 Apr 2002 01:10:11 +0000 (01:10 +0000)]
Handle numbers larger than QUAD_MAX for unsigned conversions correctly.
Exit with nonzero status if a conversion failed.
Play nice if used as a shell builtin (currently disabled).

Submitted by: bde (partially)
Approved by: mike

22 years ago- Tweak wording of panic message to make more sense.
arr [Wed, 24 Apr 2002 22:32:48 +0000 (22:32 +0000)]
- Tweak wording of panic message to make more sense.

22 years agoUpdate the test-case reference vectors to match the new XML format.
phk [Wed, 24 Apr 2002 21:03:26 +0000 (21:03 +0000)]
Update the test-case reference vectors to match the new XML format.

Sponsored by: DARPA & NAI Labs.

22 years agoImprove the cross-references in the XML output.
phk [Wed, 24 Apr 2002 21:02:28 +0000 (21:02 +0000)]
Improve the cross-references in the XML output.

Explained by: des
Sponsored by: DARPA & NAI Labs.

22 years agoAdd -DKERNELSIM so the test cases compile with the kernel simulation.
phk [Wed, 24 Apr 2002 21:00:50 +0000 (21:00 +0000)]
Add -DKERNELSIM so the test cases compile with the kernel simulation.

Sponsored by: DARPA & NAI Labs.

22 years agoImprove the output in case of inserts or deleted.
phk [Wed, 24 Apr 2002 20:59:31 +0000 (20:59 +0000)]
Improve the output in case of inserts or deleted.

Sponsored by: DARPA & NAI Labs.

22 years ago- Turn the atm_stackq_pool into a uma_zone (and change it's name to
arr [Wed, 24 Apr 2002 20:56:23 +0000 (20:56 +0000)]
- Turn the atm_stackq_pool into a uma_zone (and change it's name to
  atm_stackq_zone).
- Change the related atm_allocate() and atm_free() calls into uma_zalloc()
  and uma_zfree() calls.

22 years agoNew release notes: expr(1) and EXPR_COMPAT, m4(4) OpenBSD import and
bmah [Wed, 24 Apr 2002 20:38:25 +0000 (20:38 +0000)]
New release notes:  expr(1) and EXPR_COMPAT, m4(4) OpenBSD import and
-s, bin->base distribution renaming, cdboot used for i386 ISOs by
default, XFree86 4.2.0 support in sysinstall.

22 years agoPrepare the .conf XML comparator for a more kosher XML format.
phk [Wed, 24 Apr 2002 20:33:04 +0000 (20:33 +0000)]
Prepare the .conf XML comparator for a more kosher XML format.

Sponsored by: DARPA & NAI Labs.

22 years agoWhen a compound section name is specified, search for pages that actually
eric [Wed, 24 Apr 2002 20:07:06 +0000 (20:07 +0000)]
When a compound section name is specified, search for pages that actually
match the requested section. Previously, the section would be trimmed and
every entry matching the page name would be displayed.

Sponsored by: Apple

22 years agoCorrect timer management (deprecated) in nd6_timer.
ume [Wed, 24 Apr 2002 19:09:48 +0000 (19:09 +0000)]
Correct timer management (deprecated) in nd6_timer.

Obtained from: KAME
MFC after: 3 days

22 years agoAdd another chip id for the new LAVA 4-port serial card.
jhay [Wed, 24 Apr 2002 18:55:50 +0000 (18:55 +0000)]
Add another chip id for the new LAVA 4-port serial card.

PR: 37333
Submitted by: Ari Suutari <ari.suutari@syncrontech.com>
MFC after: 4 days

22 years agoIgnore the multifunction bit in the PCIR_HEADERTYPE.
jhay [Wed, 24 Apr 2002 18:53:43 +0000 (18:53 +0000)]
Ignore the multifunction bit in the PCIR_HEADERTYPE.

PR: 37333
Submitted by: Ari Suutari <ari.suutari@syncrontech.com>
MFC after: 4 days

22 years ago- Remove atm_attributes_pool and the relating atm_allocate() and atm_free()
arr [Wed, 24 Apr 2002 18:06:18 +0000 (18:06 +0000)]
- Remove atm_attributes_pool and the relating atm_allocate() and atm_free()
  calls associated with the pool and the objects allocated out from the
  pool.
- Insert atm_attributes_zone which is a uma_zone that is used just as the
  atm_attributes_pool was (including the max objects value).  Also, used
  the appropriate zalloc and zfree's where necesary.

22 years agoDon't call freeenv() on a modified pointer.
mux [Wed, 24 Apr 2002 17:49:21 +0000 (17:49 +0000)]
Don't call freeenv() on a modified pointer.

Submitted by: Alexander Kabaev <ak03@gte.com>
Reviewed by: phk
Pointy hat to: mux

22 years agoDrop myself from an entry I was unexpectedly included in.
rnordier [Wed, 24 Apr 2002 17:34:48 +0000 (17:34 +0000)]
Drop myself from an entry I was unexpectedly included in.

22 years agoaic7xxx_freebsd.c -> aic7xxx_osm.c
gibbs [Wed, 24 Apr 2002 16:59:47 +0000 (16:59 +0000)]
aic7xxx_freebsd.c -> aic7xxx_osm.c

22 years agoMajor update to the aic7xxx driver:
gibbs [Wed, 24 Apr 2002 16:58:51 +0000 (16:58 +0000)]
Major update to the aic7xxx driver:

ahc_eisa.c:
ahc_pci.c:
Conform to new aic7xxx IRQ API.

Adapt to aic7xxx_freebsd -> aic7xxx_osm changes.

aic7770.c:
Disable card generated interrupt early in our probe for
"extra safety"

Commonize some seeprom code with the PCI side of the driver.

aic7xxx.c:
Correctly initialize a few scratch ram locations during
a sequencer restart.  This avoids spurious sequencer ram
parity errors in some configurations.

Include the softc in ahc_update_residual calls.  We need it
for some diagnostics in this code path.

Flag a data overrun on an auto-request sense failure as a
CAM_AUTOSENSE_FAIL rather than a CAM_DATA_RUN_ERR.

Force a renegotiation after noticing a parity error.  This
covers targets that lose our negotiation settings but don't
bother to give us a unit attention condition.  This can happen
if a target fails during a reselection of us during a cable
pull.

Convert some code to using constants.

Fix some typos.

Correct target mode message loop handling.  ahc_clear_msg_state
was not clearing the "need to go to message out phase" bit once
our loop was over.

Simplify some abort handling code.

Include tag information in target mode immediate notify events.

When shutting down EISA controllers, don't EISA BIOS settings in
the high portions of scratch ram.  This fixes warm boot issues on
some systems.

Save a bit of space by only allocating the SCBs that we can use.

Avoid some code paths in ahc_abort_scbs() if we are currently
acting as a target.

Correctly cleanup stranded SCBs in the card's SCB array.  These
are SCBs who's mapping has already been torn down by code that
aborted the SCB by seeing it in another list first.

Add a comment about some potential bus reset issues for target
mode on Twin (EISA only) controllers.

aic7xxx.h:
Cleanup the hardware scb definitions a bit.

Allocate a ful 256 byte scb mapping index.  This simplifies
the lookup code since the table covers all possible (and potentially
bogus) values.

Make AHC_DEBUG work again.

aic7xxx.reg:
Updates to hardware SCB definition.

New definitions for target mode fixes.

aic7xxx.seq:
In target mode, initialize SAVED_LUN just after we receive
the identify message.  It may be required in the error recovery
path when a normal cdb packet (includes lun) is not sent up to
the host for processing.

Respond to irregular messages during a selection in target mode.

Defer looking for space for a cdb packet until we are about to
enter command phase.  We want to be able to handle irregular messages
even if we would otherwise return QUEUE_FULL or BUSY.

Add support for sending Ignore Wide Residue messages as a target.

In the disable disconnect case in target mode, set our transfer
rate correctly once data are availble.

aic7xxx_93cx6.c:
aic7xxx_93cx6.h:
Add the ability to write and erase the seeprom.

aic7xxx_inline.h:
Correct Big Endian handling of large cdb sizes (> 12 bytes).

Adaptec to changes in the calc_residual API.

Correct a target mode bug where we always attempted to service
the input queue even if no progress could be made due to lack
of ATIOs.

aic7xxx_osm.c:
Adaptec to new IRQ mapping API.  The new API allows the core
to only enable our IRQ mapping once it is safe (sufficient
initialization) to do so.

Slap bootverbose protection around some diagnostics.

Only attempt DT phases if we are wide.

aic7xxx_osm.h:
Enable big endian support.

Adjust for IRQ API change.

aic7xxx_pci.c:
Be more careful about relying on subvendor 9005 information.
We now only trust it for HBAs.  This should allow the driver
to attach to some MBs where the subvendor/device information
does not follow the Adaptec spec.

Only enable interrupts on the card once we are fully setup.

Disable external SCB ram usage on the aic7895.  I have not
been able to make it 100% reliable.

Adjust to seeprom routines being properly prefixed with "ahc".

Fix a few bugs in the external SCB ram probing routine.  We
need to clear any parity errors we've triggered during the
probe to avoid future, fatal, interrupts.

If we detect an invalid cable combination, pretent there are
no cable at all.  This will enable all of the terminators
which is probably the safest configuration we can "guess".

MFC after: 4 days

22 years agoConstify _malloc_options.
phk [Wed, 24 Apr 2002 16:49:36 +0000 (16:49 +0000)]
Constify _malloc_options.

22 years agoAdd macro functionality.
gibbs [Wed, 24 Apr 2002 16:24:43 +0000 (16:24 +0000)]
Add macro functionality.

Staticize and allow unique naming of data structures so that more
than on sequencer program can be statically compiled into the kernel
at a time.

22 years agoo Work around bugs in the powerof2 macro: It thinks that 0 is a power of
imp [Wed, 24 Apr 2002 15:30:11 +0000 (15:30 +0000)]
o Work around bugs in the powerof2 macro: It thinks that 0 is a power of
  2, but that's not the case.  This fixes the case where there were slots
  in the PIR table that had no bits set, but we assumed they did and used
  strange results as a result.
o Map invalid INTLINE registers to 255 in pci_cfgreg.c.  This should allow
  us to remove the bogus checks in MI code for non-255 values.

I put these changes out for review a while ago, but no one responded
to them, so into current they go.

This should help us work better on machines that don't route
interrupts in the traditional way.

MFC After: 4286 millifortnights

22 years agoFix a PNPID in a comment
imp [Wed, 24 Apr 2002 15:22:53 +0000 (15:22 +0000)]
Fix a PNPID in a comment

Submitted by: David Xu

22 years agoPR: 33966
hm [Wed, 24 Apr 2002 14:30:56 +0000 (14:30 +0000)]
PR:             33966
Submitted by:   Nicola Vitale <nivit@libero.it>
Reviewed by:    hm
MFC after:      3 days

22 years agoGC bsd.docb.mk. It has never apparently been used.
ru [Wed, 24 Apr 2002 13:48:45 +0000 (13:48 +0000)]
GC bsd.docb.mk.  It has never apparently been used.

22 years agoAbuse bsd.obj.mk for defining default distribute target.
ru [Wed, 24 Apr 2002 13:29:34 +0000 (13:29 +0000)]
Abuse bsd.obj.mk for defining default distribute target.

22 years agoGC bsd.sgml.mk. Nothing in the src/ tree uses it, and two doc/
ru [Wed, 24 Apr 2002 13:03:44 +0000 (13:03 +0000)]
GC bsd.sgml.mk.  Nothing in the src/ tree uses it, and two doc/
instances that still use it are unconnected from the build and
have corresponding DocBook replacements.

22 years agoBuild the catpages distribution in a more natural way.
ru [Wed, 24 Apr 2002 12:54:34 +0000 (12:54 +0000)]
Build the catpages distribution in a more natural way.

22 years agoMake specific provisions for the kernel simulator used in the regression
phk [Wed, 24 Apr 2002 12:53:12 +0000 (12:53 +0000)]
Make specific provisions for the kernel simulator used in the regression
tests, other userland programs may need to include <geom/geom.h>.

Sponsored by: DARPA & NAI Labs.

22 years agoThe chrooted environment isn't nearly pristine, so reset
ru [Wed, 24 Apr 2002 12:51:48 +0000 (12:51 +0000)]
The chrooted environment isn't nearly pristine, so reset
MAKEOBJDIRPREFIX to the canonical /usr/obj while there.

22 years agoRemove the -v option, it is now default behaviour.
phk [Wed, 24 Apr 2002 12:27:03 +0000 (12:27 +0000)]
Remove the -v option, it is now default behaviour.

Sponsored by: DARPA & NAI Labs

22 years agohandle ECONNABORTED.
ume [Wed, 24 Apr 2002 12:23:03 +0000 (12:23 +0000)]
handle ECONNABORTED.

Submitted by: morito@double-fault.net
Obtained from: KAME
MFC after: 3 days

22 years agoAdd some fortunes and re-order the Feynman problem solving algorithm.
tg [Wed, 24 Apr 2002 12:15:00 +0000 (12:15 +0000)]
Add some fortunes and re-order the Feynman problem solving algorithm.
Thanks to gsutter for the quotes.

Reviewed by: jkh

22 years agoContinue the cleanup preparations for UFS2 (& GEOM):
phk [Wed, 24 Apr 2002 11:44:02 +0000 (11:44 +0000)]
Continue the cleanup preparations for UFS2 (& GEOM):

Use only one filedescriptor.  Open in R/O or R/W based in the '-N' option.
Make the filedescriptor a global variable instead of passing it around
as semi-global variable(s).

Remove the undocumented ability to specify type without '-T' option.

Replace fatal() with straight err(3)/errx(3).  Save calls to strerror()
where applicable.  Loose the progname variable.

Get the sense of the cpgflag test correct so we only issue warnings if
people specify cpg and can't get that.  It can be argued that this
should be an error.

Remove the check to see if the disk is mounted:  Open for writing
would fail if it were mounted.

Attempt to get the sectorsize and mediasize with the generic disk
ioctls, fall back to disklabel and /etc/disktab as we can.

Notice that on-disk labels still take precedence over /etc/disktab,
this is probably wrong, but not as wrong as the entire concept of
/etc/disktab is.

Sponsored by:   DARPA & NAI Labs.

22 years agoThe install.debug and reinstall.debug targets are needed solely
ru [Wed, 24 Apr 2002 11:26:19 +0000 (11:26 +0000)]
The install.debug and reinstall.debug targets are needed solely
to build kernel and kernel modules so stop supporting them in
bsd.subdir.mk and reimplement them in kern.post.mk and kmod.mk
as special versions of the install and reinstall targets, and
only define them if DEBUG is also defined (when debug versions
are really built).

Prompted by: bde

22 years agotypo in connect(2) error handling.
ume [Wed, 24 Apr 2002 10:43:40 +0000 (10:43 +0000)]
typo in connect(2) error handling.

Submitted by: Yukiyo Akisada <Yukiyo.Akisada@jp.yokogawa.com>
Obtained from: KAME
MFC after: 3 days

22 years agoFree(9) should be Giant-free.
tanimura [Wed, 24 Apr 2002 09:59:18 +0000 (09:59 +0000)]
Free(9) should be Giant-free.

Suggested by: jhb

22 years agoSplit file system setup code out into a function called mount.
jake [Wed, 24 Apr 2002 05:54:10 +0000 (05:54 +0000)]
Split file system setup code out into a function called mount.
Implement vsnprintf.  Implement panic in terms of it.

22 years agoPrepare for a major update to the aac driver:
scottl [Wed, 24 Apr 2002 05:12:50 +0000 (05:12 +0000)]
Prepare for a major update to the aac driver:
Update the aac driver with the new crashdump api.
Protect sync fibs with a mutex.
Align all DMA buffers on a PAGE_SIZE boundary.

MFC after: 3 days

22 years agoStyle changes to reduce diff to things I did in the FSF repo.
obrien [Wed, 24 Apr 2002 04:49:34 +0000 (04:49 +0000)]
Style changes to reduce diff to things I did in the FSF repo.

22 years agoFix bug where we were loosing our platform-wide ASM_COMMENT_START
obrien [Wed, 24 Apr 2002 04:48:00 +0000 (04:48 +0000)]
Fix bug where we were loosing our platform-wide ASM_COMMENT_START
definition due to pollution in i386/unix.h.