]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoUpdate the second copy of libstand to deal with the new ufs2 superblock
Jake Burkholder [Tue, 3 Dec 2002 16:25:29 +0000 (16:25 +0000)]
Update the second copy of libstand to deal with the new ufs2 superblock
format.  The one in sys/boot/libstand is not connected to the build.

Approved by: re

21 years agoFix a bug in the fdisk editor that partially masked the chunk deletion
John Baldwin [Tue, 3 Dec 2002 16:09:55 +0000 (16:09 +0000)]
Fix a bug in the fdisk editor that partially masked the chunk deletion
bug fixed yesterday.  New slices created in the fdisk editor and slices
whose sub-type is changed are of type 'mbr' if their sub-type is not a
magic type, not type 'unknown'.

Approved by: re

21 years agoSince OpenSSH drops privileges before calling pam_open_session(3),
Dag-Erling Smørgrav [Tue, 3 Dec 2002 15:48:11 +0000 (15:48 +0000)]
Since OpenSSH drops privileges before calling pam_open_session(3),
pam_lastlog(8) can't possibly work, so let OpenSSH handle lastlog.

Approved by: re (rwatson)

21 years agoThe default CD drive is /dev/cd0, not /dev/cd0c.
Dag-Erling Smørgrav [Tue, 3 Dec 2002 15:41:30 +0000 (15:41 +0000)]
The default CD drive is /dev/cd0, not /dev/cd0c.

Reviewed by: jhb
Approved by: re (rwatson)

21 years agoLicense tweak: remove clause 3 per permission of NAI.
Robert Watson [Tue, 3 Dec 2002 15:26:01 +0000 (15:26 +0000)]
License tweak: remove clause 3 per permission of NAI.

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

21 years agoMdoc markup and language fixes.
Robert Watson [Tue, 3 Dec 2002 15:19:15 +0000 (15:19 +0000)]
Mdoc markup and language fixes.

Submitted by: ru
Approved by: re (jhb)
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoHook up a sample LOMAC labeling policy. Unlike the old LOMAC module,
Robert Watson [Tue, 3 Dec 2002 15:16:10 +0000 (15:16 +0000)]
Hook up a sample LOMAC labeling policy.  Unlike the old LOMAC module,
the file system initial labeling policy exists in userland, and is
fed into setfsmac(1).  This is based on the old LOMAC PLM.

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

21 years agoUnhook the old LOMAC module, now replaced with mac_lomac.
Robert Watson [Tue, 3 Dec 2002 15:12:36 +0000 (15:12 +0000)]
Unhook the old LOMAC module, now replaced with mac_lomac.

Approved by: re (jhb)
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoDon't install old LOMAC include files; do install new mac_lomac
Robert Watson [Tue, 3 Dec 2002 15:05:32 +0000 (15:05 +0000)]
Don't install old LOMAC include files; do install new mac_lomac
include files.

Approved by: re (jhb)
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoProperly account for prefetchable memory when a request is being made.
Warner Losh [Tue, 3 Dec 2002 08:34:20 +0000 (08:34 +0000)]
Properly account for prefetchable memory when a request is being made.
We allow the request to go through if it matches either a prefetchable
or a non-prefetchable part of the bridge.  We do not check to make
sure it is the right kind of memory because most drivers to not yet
properly set RF_PREFETCHABLE (only cardbus seems to do so, and I'm not
entirely sure it does it right).  RF_PREFETCHABLE was invented for
cardbus, so hasn't been properly documented yet.

This is still overridable by hw.pci.allow_unsupported_io_ranges, but
the need for that is greatly reduced, especially for the nvida driver.

Approved by: re
Reviewed by: jhb and many testers
Submitted by: Matt Emmerton (although this has been reworked somewhat)

21 years agoReplace the perl versions of adduser and rmuser with shell script versions.
Scott Long [Tue, 3 Dec 2002 05:41:09 +0000 (05:41 +0000)]
Replace the perl versions of adduser and rmuser with shell script versions.

Submitted by: Mike Makonnen <mtm@identd.net>
Approved by: re

21 years agoCorrect the estimated block count calculated by dump to account
Kirk McKusick [Tue, 3 Dec 2002 05:12:53 +0000 (05:12 +0000)]
Correct the estimated block count calculated by dump to account
for the minimal amount of space used by a snapshot.

Sponsored by:   DARPA & NAI Labs.

21 years agoProperly handle UFS2 sparsely allocated inodes. The UFS2 filesystem
Kirk McKusick [Tue, 3 Dec 2002 05:10:07 +0000 (05:10 +0000)]
Properly handle UFS2 sparsely allocated inodes. The UFS2 filesystem
only preallocates a small number of inodes. The dump program tries
to scan through all the allocated inodes on a filesystem which
causes bad behavior if they have never been allocated. Thus dump
must calculate the set of inodes that have actually been allocated
and scan only those inodes.

Sponsored by:   DARPA & NAI Labs.

21 years agoAdd spaces around FBSD_ENDFILE_SPEC as it is used in string concatenation.
David E. O'Brien [Tue, 3 Dec 2002 04:31:19 +0000 (04:31 +0000)]
Add spaces around FBSD_ENDFILE_SPEC as it is used in string concatenation.

Approved by: re(bmah)

21 years agoAdd lib/libfetch and usr.bin/fetch to FIXCRYPTO since they need the crypto
Dag-Erling Smørgrav [Tue, 3 Dec 2002 04:02:13 +0000 (04:02 +0000)]
Add lib/libfetch and usr.bin/fetch to FIXCRYPTO since they need the crypto
libraries for SSL support.

Approved by: re (rwatson)

21 years agoAvoid recursive acquisition of the page queues lock in pmap_unuse_pt().
Alan Cox [Tue, 3 Dec 2002 04:00:42 +0000 (04:00 +0000)]
Avoid recursive acquisition of the page queues lock in pmap_unuse_pt().

Approved by: re

21 years agoImplement DIOCGDINFO for volumes. newfs will no longer build a file
Greg Lehey [Mon, 2 Dec 2002 23:56:59 +0000 (23:56 +0000)]
Implement DIOCGDINFO for volumes.  newfs will no longer build a file
system on a volume without a disk label.

Approved by: re (rwatson)

21 years agoDon't blindly call make_dev when configuring an object: the device
Greg Lehey [Mon, 2 Dec 2002 23:53:32 +0000 (23:53 +0000)]
Don't blindly call make_dev when configuring an object: the device
could already exist, and this triggers a booby trap panic in make_dev.

remove_plex_entry: Don't remove the stripe mutex here, it gets done in
free_plex.

Approved by: re (rwatson)

21 years agoRelax partition overlap check to allow Vinum partitions to overlap
Greg Lehey [Mon, 2 Dec 2002 23:49:59 +0000 (23:49 +0000)]
Relax partition overlap check to allow Vinum partitions to overlap
other partitiosns.  This is necessary when migrating conventional
partitions to Vinum and was broken by recent more stringent overlap
checks.  This is arguably the wrong way to do it.  A better method
would be to have the loader understand a subset of Vinum partitioning
and allow an install directly to Vinum, but until then, this is the
best we have.

Reviewed by: jhb
Approved by: re (rwatson)

21 years agoBreak up a bunch of crazy if statements to use a case statement instead
John Baldwin [Mon, 2 Dec 2002 21:42:29 +0000 (21:42 +0000)]
Break up a bunch of crazy if statements to use a case statement instead
to be cleaner.  Also, when deleting a chunk, try to find the mother chunk
as a whole chunk by default if this isn't a BSD partition or a unused or
whole chunk.  Before we just did this for FreeBSD and FAT slices, which
means that other chunk types such as EFI and mbr (mbr is used for slices
that don't have their own chunk type).

Submitted by: nyan (mostly)
Approved by: re

21 years agoUpdated release notes: Binutils 2.13.1-20021011, CVS
Bruce A. Mah [Mon, 2 Dec 2002 21:22:43 +0000 (21:22 +0000)]
Updated release notes:  Binutils 2.13.1-20021011, CVS
1.11.2.1-20021201.

MFCs noted:  gre(4), Heimdal Kerberos 0.5.1.

21 years agoMake a CR/LF sequence measure up to its name: the order of the CR and LF
Peter Pentchev [Mon, 2 Dec 2002 20:38:12 +0000 (20:38 +0000)]
Make a CR/LF sequence measure up to its name: the order of the CR and LF
characters was reversed, resulting in some network appliances, including
at least some NAS devices from Ascend, not recognizing our finger(1)
request.

PR: 45914
Submitted by: J R Matthews <jrm@delta-e.com.au>
Approved by: re (rwatson)
MFC after: 2 weeks

21 years agoReplace the remaining strcpy() instances with strlcpy(), fixing a segfault
Peter Pentchev [Mon, 2 Dec 2002 20:29:08 +0000 (20:29 +0000)]
Replace the remaining strcpy() instances with strlcpy(), fixing a segfault
when parsing a malformed command-line parameter.
Rearrange a risky usage of sprintf() in a loop.

Reported by: phrail@division7.us via the vuln-dev mailing list
Approved by: re (rwatson)

21 years agoUse the hotspot code to prevent people from overwriting their disklabel
Poul-Henning Kamp [Mon, 2 Dec 2002 20:23:54 +0000 (20:23 +0000)]
Use the hotspot code to prevent people from overwriting their disklabel
with stuff which would ruin the day for any open parititons.

Approved by: re

21 years agoia64 specific.
Marcel Moolenaar [Mon, 2 Dec 2002 20:15:16 +0000 (20:15 +0000)]
ia64 specific.
o  Mount the EFI file system as msdosfs and not ufs as it's a FAT
   file system. Introduce Mount_msdos() for this to go side-by-side
   with Mount().
o  Also, since mounting is performed as a command (which means it's
   queued, sorted, lost, found and executed), we cannot create a
   directory on the file system by calling mkdir. We must make sure
   the mkdir happens after the mount. Introduce Mkdir_command() to
   allow mkdir operations to be queued, sorted, lost, found and
   executed as well.

Approved by: re (jhb, rwatson)

21 years agoAdd a simplified version of the hot-spot code to enable us to protect
Poul-Henning Kamp [Mon, 2 Dec 2002 19:59:25 +0000 (19:59 +0000)]
Add a simplified version of the hot-spot code to enable us to protect
in-band disklabels from in-band vandalism.

Approve by: re

21 years agoAlign the FPU state in the ucontext and sigcontext to 16 bytes
Daniel Eischen [Mon, 2 Dec 2002 19:58:55 +0000 (19:58 +0000)]
Align the FPU state in the ucontext and sigcontext to 16 bytes
to accomodate the new SSE/XMM floating point save/restore
instructions.

This commit is mostly from bde and includes some style nits.

Approved by: re (jhb)

21 years agoCorrectly calculate the initial number of fragments in a filesystem
Kirk McKusick [Mon, 2 Dec 2002 19:31:53 +0000 (19:31 +0000)]
Correctly calculate the initial number of fragments in a filesystem
so that fsck does not complain with `SUMMARY BLK COUNT(S) WRONG IN
SUPERBLK' the first time it is run on a new filesystem.

Reported by: Poul-Henning Kamp <phk@freebsd.org>
Sponsored by:   DARPA & NAI Labs.

21 years agoVerify that alternate superblocks have a correct magic number before
Kirk McKusick [Mon, 2 Dec 2002 19:30:37 +0000 (19:30 +0000)]
Verify that alternate superblocks have a correct magic number before
trying to use them. Set a minimum value for numdirs when using an
alternate superblock to avoid spurious numdirs == 0 error. Calculate
new fields when using an alternate superblock from a UFS1 filesystem
to avoid segment faulting.

Sponsored by:   DARPA & NAI Labs.

21 years agoRemove a workaround for a binutils bug that was fixed in the recent
Thomas Moestl [Mon, 2 Dec 2002 18:56:30 +0000 (18:56 +0000)]
Remove a workaround for a binutils bug that was fixed in the recent
import, as it breaks the relocation kernel modules built with the new
binutils.
Note that this, together with the binutils import, marks a kernel module
flag day on sparc64: modules built with the old binutils will not work
with new kernels and vice versa. Mismatches will result in panics.

Approved by: re

21 years agoIf /usr/bin/make fails to pass the regression tests, it might not
Ruslan Ermilov [Mon, 2 Dec 2002 14:31:21 +0000 (14:31 +0000)]
If /usr/bin/make fails to pass the regression tests, it might not
be suitable for building.  The old action here was to upgrade the
make in /usr/bin.  This is both bogus and does not work under non
root.  So, rather than overwriting the existing /usr/bin/make, we
now install it into a safe location, and use it from there.

Reviewed by: imp, marcel
Approved by: re (rwatson)

21 years agoFor installkernel, use the fresh tools (if we've built them with
Ruslan Ermilov [Mon, 2 Dec 2002 14:03:40 +0000 (14:03 +0000)]
For installkernel, use the fresh tools (if we've built them with
buildworld).

Reviewed by: imp, marcel
Approved by: re (rwatson)

21 years agoCast argument to (long), missed in prior pass.
Robert Watson [Mon, 2 Dec 2002 13:26:16 +0000 (13:26 +0000)]
Cast argument to (long), missed in prior pass.

Approved by: re
Submitted by: marcel

21 years agoFix 32-bit/64-bit bug in format string.
Robert Watson [Mon, 2 Dec 2002 13:25:01 +0000 (13:25 +0000)]
Fix 32-bit/64-bit bug in format string.

Approved by: re
Submitted by: marcel
Pointy hat to: green

21 years agoRemove the ancient PEI cruft that is useless.
David E. O'Brien [Mon, 2 Dec 2002 10:50:38 +0000 (10:50 +0000)]
Remove the ancient PEI cruft that is useless.

21 years agoWe can handle the bfd_elf32_i386_vec vector at the same time as the
David E. O'Brien [Mon, 2 Dec 2002 10:01:18 +0000 (10:01 +0000)]
We can handle the bfd_elf32_i386_vec vector at the same time as the
bfd_elf32_i386_freebsd_vec.  This may help in intra-branch building.

21 years agoWe can handle the bfd_elf64_alpha_vec vector at the same time as the
David E. O'Brien [Mon, 2 Dec 2002 10:00:44 +0000 (10:00 +0000)]
We can handle the bfd_elf64_alpha_vec vector at the same time as the
bfd_elf64_alpha_freebsd_vec.  This may help in intra-branch building.

21 years agoCleaner support of a DEFAULT_VECTOR.
David E. O'Brien [Mon, 2 Dec 2002 09:59:05 +0000 (09:59 +0000)]
Cleaner support of a DEFAULT_VECTOR.

21 years agoUpdate for the Binutils 2.13.2 20021127 snapshot import.
David E. O'Brien [Mon, 2 Dec 2002 09:54:40 +0000 (09:54 +0000)]
Update for the Binutils 2.13.2 20021127 snapshot import.

21 years agoHandle the "HAVE_" defines via the VECS list.
David E. O'Brien [Mon, 2 Dec 2002 09:53:59 +0000 (09:53 +0000)]
Handle the "HAVE_" defines via the VECS list.

21 years agoUpdate for the Binutils 2.13.2 20021127 snapshot import.
David E. O'Brien [Mon, 2 Dec 2002 09:49:57 +0000 (09:49 +0000)]
Update for the Binutils 2.13.2 20021127 snapshot import.
Among other things, we don't need to redefine ELF_DYNAMIC_INTERPRETER here.

21 years agoUpdate for the Binutils 2.13.2 20021127 snapshot import.
David E. O'Brien [Mon, 2 Dec 2002 09:45:51 +0000 (09:45 +0000)]
Update for the Binutils 2.13.2 20021127 snapshot import.

21 years agoWe now have insque().
David E. O'Brien [Mon, 2 Dec 2002 09:44:59 +0000 (09:44 +0000)]
We now have insque().

21 years agoBinutils 2.13.2 is WARNS=2 clean for all our architectures.
David E. O'Brien [Mon, 2 Dec 2002 09:41:35 +0000 (09:41 +0000)]
Binutils 2.13.2 is WARNS=2 clean for all our architectures.

21 years agoUpdate for the 2.13.2 2002-11-27 snapshot import.
David E. O'Brien [Mon, 2 Dec 2002 09:40:02 +0000 (09:40 +0000)]
Update for the 2.13.2 2002-11-27 snapshot import.

21 years agoUpdate HEAD with the stock files.
David E. O'Brien [Mon, 2 Dec 2002 09:39:02 +0000 (09:39 +0000)]
Update HEAD with the stock files.

21 years agoMerge rev 1.2 (teach `ld' how to access FreeBSD's ld ELF hints)
David E. O'Brien [Mon, 2 Dec 2002 09:31:42 +0000 (09:31 +0000)]
Merge rev 1.2 (teach `ld' how to access FreeBSD's ld ELF hints)
into the Binutils 2.13.2 20021128 snap.

21 years agoWhile it is true we moved over to our own elf*-<arch>-fbsd files as the
David E. O'Brien [Mon, 2 Dec 2002 09:27:18 +0000 (09:27 +0000)]
While it is true we moved over to our own elf*-<arch>-fbsd files as the
last comment said; these files didn't deal with ELF branding, but that the
default ELF_DYNAMIC_INTERPRETER is wrong for us (and most everyone else!).

We now have our own FBSD emulation and the ELF_DYNAMIC_INTERPRETER is
handled thru the new emulation by 'ld'.

21 years agoRemove our custom ELF branding -- we have moved to our own ELF vectors
David E. O'Brien [Mon, 2 Dec 2002 09:22:58 +0000 (09:22 +0000)]
Remove our custom ELF branding -- we have moved to our own ELF vectors
that DTRT.

21 years agoMerge our ELF branding into Binutils 2_13_2_20021127 snapshot.
David E. O'Brien [Mon, 2 Dec 2002 09:17:49 +0000 (09:17 +0000)]
Merge our ELF branding into Binutils 2_13_2_20021127 snapshot.

21 years agoGC some stuff I thought was long gone.
David E. O'Brien [Mon, 2 Dec 2002 09:14:25 +0000 (09:14 +0000)]
GC some stuff I thought was long gone.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r107492,
David E. O'Brien [Mon, 2 Dec 2002 09:06:04 +0000 (09:06 +0000)]
This commit was generated by cvs2svn to compensate for changes in r107492,
which included commits to RCS files with non-trunk default branches.

21 years agoImport of Binutils from the FSF 2.13 branch (just pre-.2 release).
David E. O'Brien [Mon, 2 Dec 2002 09:06:04 +0000 (09:06 +0000)]
Import of Binutils from the FSF 2.13 branch (just pre-.2 release).
These bits are taken from the FSF anoncvs repo on 27-Oct-2002 21:12:00 EST.

21 years agoTry to keep CVS from pissing over the next binutils import by returning
David E. O'Brien [Mon, 2 Dec 2002 08:42:08 +0000 (08:42 +0000)]
Try to keep CVS from pissing over the next binutils import by returning
to purely stock files.

21 years agoHold the page queues lock when calling pmap_unwire_pte_hold() or
Alan Cox [Mon, 2 Dec 2002 04:54:21 +0000 (04:54 +0000)]
Hold the page queues lock when calling pmap_unwire_pte_hold() or
pmap_remove_pte().  Use vm_page_sleep_if_busy() in
_pmap_unwire_pte_hold() so that the page queues lock is released
when sleeping.

Approved by: re (blanket)

21 years agoAdd support for -R for file relabel operations.
Robert Watson [Mon, 2 Dec 2002 03:22:57 +0000 (03:22 +0000)]
Add support for -R for file relabel operations.

Add 'setfsmac' link, which permits labels to be provided in a label
specification file, making it easier to provide initial file system
labeling specifications.  This is used by the new mac_lomac to
provide initial system labeling and policy, and by sebsd, the port
of SELinux FLASK/TE to FreeBSD.

Approved by: re (jhb)
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoUpdate bmake glue after 1.11.2.1-20021201 import. options.h is no longer
Peter Wemm [Mon, 2 Dec 2002 03:20:25 +0000 (03:20 +0000)]
Update bmake glue after 1.11.2.1-20021201 import.  options.h is no longer
touched by configure in the autoconf system and a standard version is
now used.

Approved by:    re

21 years agoMerge 1.11.2 -> 1.11.2.1-20021201 changes onto mainline
Peter Wemm [Mon, 2 Dec 2002 03:17:49 +0000 (03:17 +0000)]
Merge 1.11.2 -> 1.11.2.1-20021201 changes onto mainline

Approved by: re

21 years agoThis commit was generated by cvs2svn to compensate for changes in r107484,
Peter Wemm [Mon, 2 Dec 2002 03:13:37 +0000 (03:13 +0000)]
This commit was generated by cvs2svn to compensate for changes in r107484,
which included commits to RCS files with non-trunk default branches.

21 years agoImport cvs-1.11.2.1 as of 2002/12/01 onto vendor branch. This fixes all
Peter Wemm [Mon, 2 Dec 2002 03:13:37 +0000 (03:13 +0000)]
Import cvs-1.11.2.1 as of 2002/12/01 onto vendor branch.  This fixes all
of the bugs that I know of.  We've been running a slightly older version
of this on freefall/repoman, where it was afflicted by a silly merge error
on my part (fixed).

Approved by:  re

21 years agoFix a dumb bug that broke net booting on sparc64. The wrong length was
Jake Burkholder [Mon, 2 Dec 2002 01:46:22 +0000 (01:46 +0000)]
Fix a dumb bug that broke net booting on sparc64.  The wrong length was
passed to strncmp.

Noticed by: tmm
Approved by: re
Pointy hat to: jake

21 years agoo Newer EFI implementations require that a GPT is preceeded by
Marcel Moolenaar [Mon, 2 Dec 2002 01:42:03 +0000 (01:42 +0000)]
o  Newer EFI implementations require that a GPT is preceeded by
   a PMBR. Make sure the create command creates a PMBR as well
   (if not already present).
o  When parsing the MBR, explicitly check for a PMBR and create
   a PMBR map node if one is found.
o  When parsing the MBR, recurse to handle extended partitions.
   This allows us to flatten nested MBRs when migrating to a
   GPT.
o  Have the migrate command bail out if it encounters a partition
   it doesn't know how to migrate. This avoids data loss.
o  Change the output of the show command so that the UUIDs of the
   GPT partitions fit on the same line.
o  Show when partitions are extended partitions and add the PMBR
   type.

Approved by: re (blanket)

21 years agoMFi386
Alan Cox [Mon, 2 Dec 2002 01:12:05 +0000 (01:12 +0000)]
MFi386
 Hold the page queues lock around vm_page_unhold() in vunmapbuf().

Approved by: re (blanket)

21 years agoReplace rev 1.33 with a real fix. The problem was integer overflows
Peter Wemm [Mon, 2 Dec 2002 01:05:08 +0000 (01:05 +0000)]
Replace rev 1.33 with a real fix.  The problem was integer overflows
when trying to store the year in a signed int.  The maximum time_t on ia64
is around 292 billion years in the future, but 'int' and struct tm.tm_year
can only represent then ext 2.1 billion years or so.

This solves the problem of mktime/localtime looping on ia64.  Unfortunately,
the standards say that tm_year is an 'int', so we are still stuck with a
y2147483647 bug.  bash2's configure script looks for bugs in mktime() and
fails on ia64 because of this.  However, mktime() on FreeBSD fails the test
normally anyway so this is no big loss.

This change does not affect any other platforms besides ia64.

Approved by: re

21 years agoDocument the MLS policy
Chris Costello [Mon, 2 Dec 2002 01:04:37 +0000 (01:04 +0000)]
Document the MLS policy

Approved by: re
Sponsored by: DARPA, Network Associates Labs
Obtained from: TrustedBSD Project

21 years agoSpelling: "current" -> "currently"
Chris Costello [Mon, 2 Dec 2002 00:00:43 +0000 (00:00 +0000)]
Spelling: "current" -> "currently"

Approved by: re
Sponsored by: DARPA, Network Associates Labs

21 years agoAlways initialize the UPA target module id in the interrupt mapping
Thomas Moestl [Sun, 1 Dec 2002 23:30:26 +0000 (23:30 +0000)]
Always initialize the UPA target module id in the interrupt mapping
register to the one of the processor doing the interrupt setup. This
is required since this field is preinitialized to 0, but there exist
machines which have no processor with a MID of 0 (e.g. e450s with 1 or 2
processors).

Add some more macros for handle the interrupt mapping registers, and
rename some existing ones for consistency.

Approved by: re

21 years ago1.) Do not look for PCI INOs in the FFB interrupt mapping registers; they
Thomas Moestl [Sun, 1 Dec 2002 23:21:15 +0000 (23:21 +0000)]
1.) Do not look for PCI INOs in the FFB interrupt mapping registers; they
    are nevers used for PCI interrupts, but can cause false matches since
    they are fully programmable.
2.) Skip the mapping registers for slot a2 and a3 on "psycho" bridges,
    since they are not present there. Again, this could cause false matches,
    which would result in the interrupt being delivered at most once.

Submitted by: jake (2)
Approved by: re

21 years agoTeach mdmfs how to pass UFS version numbers through to newfs. Because
Robert Watson [Sun, 1 Dec 2002 23:19:57 +0000 (23:19 +0000)]
Teach mdmfs how to pass UFS version numbers through to newfs.  Because
of an argument name collision with -O, use -v, and default to whatever
the newfs default is for the platform (generally, UFS1).  This is
required to support diskless workstations that use UFS2 for their
mdmfs file systems.

Reviewed by: dd, bmah
Approved by: re (bmah)
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoRemove some long-dead cruft in the interrupt handling code which was
Thomas Moestl [Sun, 1 Dec 2002 23:13:59 +0000 (23:13 +0000)]
Remove some long-dead cruft in the interrupt handling code which was
never used in FreeBSD.

Approved by: re

21 years agoIn general, prefer WARNS to CFLAGS+=-Wall. Tend towards a more
Robert Watson [Sun, 1 Dec 2002 23:10:28 +0000 (23:10 +0000)]
In general, prefer WARNS to CFLAGS+=-Wall.  Tend towards a more
BSD-esque Makefile style.

Submitted by: obrien
Approved by: re

21 years agoReverse the quirk table entry for swizzling on a missing interrupt map;
Thomas Moestl [Sun, 1 Dec 2002 23:06:14 +0000 (23:06 +0000)]
Reverse the quirk table entry for swizzling on a missing interrupt map;
this is now done on all machines except for some known problematic ones.

Add an additional guard to make sure that the interrupt numbers are
in the correct range before swizzling. This should catch any remaining
models for which the swizzle is inappropriate.

Correct the swizzle calculation to account for the fact that the parent
interrupt numbers to be swizzled are 1-based.

Approved by: re

21 years agoFix some comments describing psycho registers.
Thomas Moestl [Sun, 1 Dec 2002 23:00:41 +0000 (23:00 +0000)]
Fix some comments describing psycho registers.

Approved by: re

21 years agoDo not panic when a dmamap is unloaded more then once, but just silently
Thomas Moestl [Sun, 1 Dec 2002 22:59:29 +0000 (22:59 +0000)]
Do not panic when a dmamap is unloaded more then once, but just silently
ignore it. This is non-fatal on the other architectures, and some
drivers seem to do this.

Approved by: re

21 years agoThe Bluetooth stack apparently works on pc98, so enable items in
Bruce A. Mah [Sun, 1 Dec 2002 19:40:37 +0000 (19:40 +0000)]
The Bluetooth stack apparently works on pc98, so enable items in
the pc98 release documentation.

Pointed out by: nyan
Approved by: re (implicitly)

21 years agoFix minor SGML markup glitch.
Bruce A. Mah [Sun, 1 Dec 2002 19:35:30 +0000 (19:35 +0000)]
Fix minor SGML markup glitch.

Pointed out by: ue
Approved by: re (implicitly)

21 years agoHold the page queues lock when calling pmap_protect(); it updates fields
Alan Cox [Sun, 1 Dec 2002 18:57:56 +0000 (18:57 +0000)]
Hold the page queues lock when calling pmap_protect(); it updates fields
of the vm_page structure.  Make the style of the pmap_protect() calls
consistent.

Approved by: re (blanket)

21 years agoMake the following changes to the semi-automated package split:
Bruce A. Mah [Sun, 1 Dec 2002 18:03:42 +0000 (18:03 +0000)]
Make the following changes to the semi-automated package split:

1.  On disc1, print/acroread4 for alpha and print/acroread5 for i386
replace print/acroread, which was not compatible with the linux_base
that we ship by default.  Remove print/acroread4 from disc3 as
redundant.

2.  www/linux-netscape47-* were removed due to security holes;
substitute www/netscape48-* on disc1.

3.  Add www/opera to disc1.

Approved by: re (murray)

21 years agoBacked out previous commit (alignment suitable for RELENG_4) as planned
Bruce Evans [Sun, 1 Dec 2002 17:36:18 +0000 (17:36 +0000)]
Backed out previous commit (alignment suitable for RELENG_4) as planned
since it has been MFC'ed.  See the log message for the previous commit
for more details.  The alignment bug in gcc-3 has not been fixed, but
it is not very serious and the previous commit just moved it (as intended).

Approved by: re (murray)

21 years agoMFbed: translation updates that were not yet available on cvsup2.de
Udo Erdelhoff [Sun, 1 Dec 2002 16:20:37 +0000 (16:20 +0000)]
MFbed: translation updates that were not yet available on cvsup2.de
hardware/common/dev.sgml: 1.116 -> 1.117
relnotes/common/new.sgml: 1.460 -> 1.461

21 years agoAdd Makefile.inc to include ../Makefile.inc.
Yoshihiro Takahashi [Sun, 1 Dec 2002 16:07:53 +0000 (16:07 +0000)]
Add Makefile.inc to include ../Makefile.inc.

Approved by: re (rwatson)

21 years agoDe-danglify.
Poul-Henning Kamp [Sun, 1 Dec 2002 15:59:33 +0000 (15:59 +0000)]
De-danglify.

Submitted by: ceri
Approved by: re (blanket)

21 years agoSynchronize usage() with reality.
Poul-Henning Kamp [Sun, 1 Dec 2002 15:58:28 +0000 (15:58 +0000)]
Synchronize usage() with reality.
Semi-automatic handling of /dev prefix for device names.

Sponsored by: DARPA & NAI Labs.
Approved by: re (blanket)

21 years agoDe-danglify the manual page.
Poul-Henning Kamp [Sun, 1 Dec 2002 15:57:02 +0000 (15:57 +0000)]
De-danglify the manual page.

Submitted by: ceri
Approved by: re (blanket)

21 years agoUse more mnemonic argument names in the access functions.
Poul-Henning Kamp [Sun, 1 Dec 2002 15:54:39 +0000 (15:54 +0000)]
Use more mnemonic argument names in the access functions.

Sponsored by: DARPA & NAI Labs
Approved by: re (blanket)

21 years agoFix a cut&past-o.
Poul-Henning Kamp [Sun, 1 Dec 2002 15:53:31 +0000 (15:53 +0000)]
Fix a cut&past-o.

Spotted by: yar
Approved by: re (blanket)

21 years agoConceiveably, there may exist an algorithm which can tell if a sequence of bytes
Poul-Henning Kamp [Sun, 1 Dec 2002 15:50:48 +0000 (15:50 +0000)]
Conceiveably, there may exist an algorithm which can tell if a sequence of bytes
are the output of AES/128/CBC or ARC4RANDOM.  Encrypt the random data with which
we wipe when we get a BIO_DELETE to make such an algorithm useful.

Sponsored by: DARPA & NAI Labs
Approved by: re (blanket)

21 years agoUse unsigned for an index.
Poul-Henning Kamp [Sun, 1 Dec 2002 15:47:49 +0000 (15:47 +0000)]
Use unsigned for an index.

Sponsored by: DARPA & NAI Labs.
Approved by: re (blanket).

21 years agoIn ata_reinit, when ata_getparam fails for a new device (indicating that
Thomas Quinot [Sun, 1 Dec 2002 14:20:08 +0000 (14:20 +0000)]
In ata_reinit, when ata_getparam fails for a new device (indicating that
the device is not actually present), clear the corresponding bit in
the ch->devices bitmap. This resolves a panic that occurred with ATAPI/CAM
after an APM suspend/resume, when the ATA hardware would erroneously
report an extra ATAPI device.

Approved by: re, sos
Reviewed by: roberto
MFC after: 7 days

21 years agoBootstrapping aid from pre-kqueue(2) systems, e.g. 4.0-RELEASE.
Ruslan Ermilov [Sun, 1 Dec 2002 13:38:25 +0000 (13:38 +0000)]
Bootstrapping aid from pre-kqueue(2) systems, e.g. 4.0-RELEASE.

Submitted by: jmallett
Approved by: re (bmah)

21 years agoMFbed: track changes in the english version and general cleanup
Udo Erdelhoff [Sun, 1 Dec 2002 12:56:41 +0000 (12:56 +0000)]
MFbed: track changes in the english version and general cleanup
early-adopter/article.sgml: 1.5   -> 1.7
hardware/common/dev.sgml: 1.115 -> 1.116
installation/common/upgrade.sgml: 1.9   -> 1.10
relnotes/common/new.sgml: 1.455 -> 1.460

Approved by: re (blanket)

21 years agoMajor update to the ahd driver to fix many bugs found in the previous
Scott Long [Sun, 1 Dec 2002 08:13:37 +0000 (08:13 +0000)]
Major update to the ahd driver to fix many bugs found in the previous
version, plus add support for the new features found in the Rev B
version of the chip.  The changelog is quite long and can be provided
on request.  Major features include vastly improved protocol violation
handling, full support for the 7902 Rev B, better parity error
handling, and better packetized overrun handling, to name a few.

Approved by: re (blanket)

21 years agoImplement workaround for broken busfree-rev in the A4.
Scott Long [Sun, 1 Dec 2002 07:59:01 +0000 (07:59 +0000)]
Implement workaround for broken busfree-rev in the A4.

HP -> CPQ

Rearrange IDs to better match which chips they use.

Convert to uniform product description strings.

Simplify 7901A setup function.

Add the NONPACKFIFO_BUG and PACED_NEGTABLE_BUG entries
for the A.

Add rev B bugs and features.

The double write workaround for CURRSCB is only required if
abort pending is set.  Remove this work around and set the
abort pending bug bit on the B at least until we have better
confirmation that the double write is always safe.

Add updated H2B identifiers

Move IOCell paramters into softc and add a hook for the
OSM to modify these as well as other settings prior to
committing them to the chip.

SLEW -> SLEWRATE

PREQDIS in DEVCONFIG1 went away after the A2.
Remove all code that references this bit.  This
is especially important since this bit was reused
in the B for a different HW fix workaround.

Properly set the AHD_NEW_IOCELL_OPTS and
AHD_NEW_DFCNTRL_OPTS features for the B.

Remove stray/random extra 7901A generic PCI
table entry.  Also switch the correct 7901A
generic entry to use ID_ALL_MASK since we
can only differentiate the 7901A from the
7902 by checking for a "type field" of 0xE.

Set AHD_INTCOLLISIONT_BUG for the Rev B.

Set the PREQDIS bit in DEVCONFIG1 for the B.  The
bit is misnamed, but seems to disable a work-around
that breaks on the B on PCI busses.

Add a routine for testing memory mapped register access.
This will hopefully detect things like buggy via chipsets
so that the OSM can fallback to using I/O mapped access
when memory mapped I/O simply will not work.

Approved by: re (blanket)

21 years agoAdd our controller name to the front of our
Scott Long [Sun, 1 Dec 2002 07:54:53 +0000 (07:54 +0000)]
Add our controller name to the front of our
diagnostic "Setting Mode" messages.

Use a read of HCNTRL to flush our write to CLRCMDCMPLT
on the RevB.  This allows us to check to see if the sequencer
is paused and to initiate the interrupt collision workaround
without incuring an extra read.

Approved by: re (blanket)

21 years agoRemove redundant check for chip type being PCI-X.
Scott Long [Sun, 1 Dec 2002 07:52:35 +0000 (07:52 +0000)]
Remove redundant check for chip type being PCI-X.
PCI-X only workarounds are automatically masked out
if we are operating in PCI mode.

Make use of ahd_pci_test_register_access()

Approved by: re (blanket)

21 years agoUpdate to include new ahd_scb_timer_reset API
Scott Long [Sun, 1 Dec 2002 07:50:56 +0000 (07:50 +0000)]
Update to include new ahd_scb_timer_reset API

Move IOCell paramters into softc and add a hook for the
OSM to modify these as well as other settings prior to
committing them to the chip.

Approved by: re (blanket)

21 years agoHold the page queues lock when calling pmap_protect(); it updates fields
Alan Cox [Sun, 1 Dec 2002 05:40:18 +0000 (05:40 +0000)]
Hold the page queues lock when calling pmap_protect(); it updates fields
of the vm_page structure.  Nearby, remove an unnecessary semicolon and
return statement.

Approved by: re (blanket)

21 years agoAdd a manpage. Nobody expects the spanish inquisition, but the
Marcel Moolenaar [Sun, 1 Dec 2002 02:10:34 +0000 (02:10 +0000)]
Add a manpage. Nobody expects the spanish inquisition, but the
mdoc(7) police... It's all yours ru :-)

Approved by: re (blanket)

21 years agoAssert that the page queues lock is held in pmap_changebit()
Alan Cox [Sun, 1 Dec 2002 00:08:14 +0000 (00:08 +0000)]
Assert that the page queues lock is held in pmap_changebit()
and pmap_ts_referenced().

Approved by: re (blanket)

21 years agoIncrease the scope of the page queue lock in vm_pageout_scan().
Alan Cox [Sun, 1 Dec 2002 00:02:39 +0000 (00:02 +0000)]
Increase the scope of the page queue lock in vm_pageout_scan().

Approved by: re (blanket)