]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoChange the process title as soon as possible to mask information passed on
des [Wed, 4 Dec 2002 15:00:10 +0000 (15:00 +0000)]
Change the process title as soon as possible to mask information passed on
the command line by getty(8).  This is not a perfect fix, but drastically
reduces the window of exposure.

Approved by: re (rwatson)
MFC after: 1 week

21 years agomdoc(7) police: nit.
ru [Wed, 4 Dec 2002 14:46:33 +0000 (14:46 +0000)]
mdoc(7) police: nit.

Approved by: re

21 years agomdoc(7) police: bump document date for the C rewrite, nit.
ru [Wed, 4 Dec 2002 14:45:48 +0000 (14:45 +0000)]
mdoc(7) police: bump document date for the C rewrite, nit.

Approved by: re

21 years agomdoc(7) police: overhaul.
ru [Wed, 4 Dec 2002 14:44:20 +0000 (14:44 +0000)]
mdoc(7) police: overhaul.

Approved by: re

21 years agomdoc(7) police: s/nul character/null character/.
ru [Wed, 4 Dec 2002 14:42:49 +0000 (14:42 +0000)]
mdoc(7) police: s/nul character/null character/.

Approved by: re

21 years agoThis commit was generated by cvs2svn to compensate for changes in r107579,
des [Wed, 4 Dec 2002 14:37:35 +0000 (14:37 +0000)]
This commit was generated by cvs2svn to compensate for changes in r107579,
which included commits to RCS files with non-trunk default branches.

21 years agoAdd default cases to the switches (perforce change 21902)
des [Wed, 4 Dec 2002 14:37:35 +0000 (14:37 +0000)]
Add default cases to the switches (perforce change 21902)

21 years agoUse the correct value when writing the Day Of Week byte in the CMOS.
phk [Wed, 4 Dec 2002 13:46:49 +0000 (13:46 +0000)]
Use the correct value when writing the Day Of Week byte in the CMOS.
The correct range is [1...7] with Sunday=1, but we have been writing
[0...6] with Sunday=0.

The Soekris computers flagged the zero, zapped the date, so if you
rebooted your soekris on a sunday, it would come up with a wrong
date.

Bruce has a more extensive rework of this code, but we will stick with
the minimalist fix for now.

Spotted by: Soren Kristensen <soren@soekris.com>
Thanks to: Michael Sierchio <kudzu@tenebras.com>.
Confirmed by: bde
Approved by: re

21 years agortld support for PowerPC. Mostly obtained from NetBSD, with mods
grehan [Wed, 4 Dec 2002 07:32:20 +0000 (07:32 +0000)]
rtld support for PowerPC. Mostly obtained from NetBSD, with mods
for binutils 2.13

Reviewed by:  benno

Approved by:  re (blanket)

21 years agoMinimal libc for PowerPC.
grehan [Wed, 4 Dec 2002 07:25:14 +0000 (07:25 +0000)]
Minimal libc for PowerPC.

Reviewed by: benno

Approved by: re (blanket)

21 years agoReduce WARNS level to 3 in the non-crypto case to fix make release on sparc64.
jake [Wed, 4 Dec 2002 04:34:59 +0000 (04:34 +0000)]
Reduce WARNS level to 3 in the non-crypto case to fix make release on sparc64.
This may only be turning up now to changes in the cpp predefines for sparc64,
which may be turning on more strict alignment checking.

Approved by: re

21 years agoFix minor gramm-o.
bmah [Wed, 4 Dec 2002 04:17:28 +0000 (04:17 +0000)]
Fix minor gramm-o.

Submitted by: keramida
Approved by: re (implicitly)

21 years agoSigh. Another wrong version string. However, this one isn't used in the
peter [Wed, 4 Dec 2002 00:07:15 +0000 (00:07 +0000)]
Sigh. Another wrong version string.  However, this one isn't used in the
build.

Approved by: re

21 years agoNew release notes: adduser(8)/rmuser(8) and the Great Perl Rewrite,
bmah [Tue, 3 Dec 2002 23:03:45 +0000 (23:03 +0000)]
New release notes:  adduser(8)/rmuser(8) and the Great Perl Rewrite,
dump(8) -L.

Modified release notes: DEVICE_POLLING for nge(4) [1], clarification
of some UFS2 items, Perl distribution in sysinstall.

Submitted by: Hiten Pandya <hiten@angelica.unixdaemons.com> [1]
Approved by: re (implicitly)

21 years agoReformulate how sysinstall handles file system options in the label
rwatson [Tue, 3 Dec 2002 22:25:47 +0000 (22:25 +0000)]
Reformulate how sysinstall handles file system options in the label
editor, in order to support specifying UFS2 as a newfs option.

(1) Support three different newfs types: NEWFS_UFS, NEWFS_MSDOS, and
    NEWFS_CUSTOM.  Don't mix up the arguments to them: you can't use
    soft updates on an msdos file system.

(2) Distinguish adding new arguments to the newfs command line from
    replacing it.  Permit the addition of new arguments by the user for
    NEWFS_UFS.  If we entirely replace the command line provided by
    sysinstall, call it NEWFS_CUSTOM.  'N' will now add additional
    arguments; 'Z' will opt to replace the newfs command line entirely,
    but will prompt the user with their current command line as a
    starting point.

(3) Construct the newfs command line dynamically based on the options
    provided by the user at label-time.  Right now, this means selecting
    UFS1 vs. UFS2, and the soft updates flag.  Drop in some variables
    to support ACLs and MAC Multilabel in the future also, but don't
    expose them now.

This provides sysinstall with the ability to do more "in band" editing
of the newfs command line, so we can provide more support for the user,
but doesn't sacrifice the ability to entirely specify the newfs command
line of the user is willing to give up on the cushiness factor.  It
also makes it easier for us to specify defaults in the future, and
define conditional behavior based on user configuration selections.
For now, we default to UFS1, and permit UFS2 to be used as the root
only on non-i386 systems.

While I was there, I dropped the default fragment and block sizes,
since newfs has much more sensible defaults now.

Reviewed by: jhb, marcel
Approved by: re
ia64 bits from: marcel

21 years agoOops. Use the correct version number. The number that was here was the
peter [Tue, 3 Dec 2002 21:59:42 +0000 (21:59 +0000)]
Oops. Use the correct version number.  The number that was here was the
one that I originally used on freefall etc.

Approved by: re

21 years agoOops, forgot this cosmetic tweak to the perl menu item in my previous
jhb [Tue, 3 Dec 2002 21:02:26 +0000 (21:02 +0000)]
Oops, forgot this cosmetic tweak to the perl menu item in my previous
commit.

Approved by: re (this is what they actually reviewed)

21 years agoAdd support for the PC98 platform to the ATA driver.
sos [Tue, 3 Dec 2002 20:20:44 +0000 (20:20 +0000)]
Add support for the PC98 platform to the ATA driver.
This mostly consists of functionality to serialize accesses to
the two ATA channels (which can also be used to "fix" certain
PCI based controllers).
Add support for Acard controllers.
Enable the ATA driver in PC98 GENERIC, and add device hints.
Update man page with latest support.

The PC98 core team has kindly provided me with a PC98
machine that made this all possible, thanks to all that
contributed to that effort, without that this would
probably newer have been possible..

Approved by: re@

21 years ago- Convert the installation of the X package to using installPackage()
jhb [Tue, 3 Dec 2002 19:42:30 +0000 (19:42 +0000)]
- Convert the installation of the X package to using installPackage()
  rather than installX11package().
- Add a perl psuedo-dist that installs the perl package.  The perl
  distribution is selected by default when a User distribution set is
  selected.  It is not selected when a Minimal distribution set is
  selected.  The perl distribution may be toggled manually in the
  custom menu just as other distributions.

Approved by: re

21 years agoRename installX11package() to installPackage() and tweak it so that it
jhb [Tue, 3 Dec 2002 19:36:12 +0000 (19:36 +0000)]
Rename installX11package() to installPackage() and tweak it so that it
can be used to install any arbitrary package.

Approved by: re

21 years agoAdd the `L' option to dump to notify it that it is dumping a
mckusick [Tue, 3 Dec 2002 18:21:09 +0000 (18:21 +0000)]
Add the `L' option to dump to notify it that it is dumping a
live filesystem. To obtain a consistent dump image, dump takes
a snapshot of the filesystem and then does a dump of the snapshot.
The snapshot is removed when the dump is complete.

Also add an operator warning that the `L' option should be used
if dump is run on a live filesystem without the `L' option being
specified. The alternative would be to silently use a snapshot
any time that a live filesystem is dumped, but this change in
dump semantics seemed too drastic at this time.

Sponsored by:   DARPA & NAI Labs.
Approved by: re

21 years agoHave to use bread() rather than UFS_BALLOC() when obtaining a
mckusick [Tue, 3 Dec 2002 18:19:27 +0000 (18:19 +0000)]
Have to use bread() rather than UFS_BALLOC() when obtaining a
previously allocated block as the previous use of the block may
have fallen out of the cache. Failure to reread its contents cause
zeroed results to be written instead of the proper contents.
Conversely, when the block is going to be entirely filled in, it
is not necessary reread the old contents.

Sponsored by:   DARPA & NAI Labs.
Approved by: re

21 years ago"i386" is probably a better long name for the i386 platform, as
bmah [Tue, 3 Dec 2002 18:00:30 +0000 (18:00 +0000)]
"i386" is probably a better long name for the i386 platform, as
opposed to IA-32.

Pointed out by: Andrew I Baznikin <dikiy@scn.ru>, jhb
Approved by: re (implicitly)

21 years agoMinor, cosmetic change to buildworld output to make it reflect
bmah [Tue, 3 Dec 2002 17:49:05 +0000 (17:49 +0000)]
Minor, cosmetic change to buildworld output to make it reflect
rev. 1.270 more accurately.

Reviewed by: ru
Approved by: re (jhb)

21 years agoUpdate the second copy of libstand to deal with the new ufs2 superblock
jake [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
jhb [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),
des [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.
des [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.
rwatson [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.
rwatson [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,
rwatson [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.
rwatson [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
rwatson [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.
imp [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.
scottl [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
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
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.
obrien [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
des [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().
alc [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
grog [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
grog [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
grog [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
jhb [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
bmah [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
roam [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
roam [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
phk [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 [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
phk [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
deischen [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
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
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
tmm [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
ru [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
ru [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.
rwatson [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.
rwatson [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.
obrien [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
obrien [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
obrien [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.
obrien [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.
obrien [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.
obrien [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.
obrien [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.
obrien [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().
obrien [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.
obrien [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.
obrien [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.
obrien [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)
obrien [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
obrien [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
obrien [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.
obrien [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.
obrien [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,
obrien [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).
obrien [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
obrien [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
alc [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.
rwatson [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 [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 [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 [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 [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 [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 [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
alc [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 [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 [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 [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
tmm [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
tmm [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
rwatson [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
tmm [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
rwatson [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;
tmm [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.
tmm [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
tmm [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
bmah [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.
bmah [Sun, 1 Dec 2002 19:35:30 +0000 (19:35 +0000)]
Fix minor SGML markup glitch.

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