]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoReset the 16-bit bus and turn off power. More work in this area may
imp [Sun, 21 Jul 2002 04:23:11 +0000 (04:23 +0000)]
Reset the 16-bit bus and turn off power.  More work in this area may
be needed, but this seems sane on my laptop.

22 years agoRemove __FreeBSD__ version abuse, also de-orbit support for FreeBSD 2
imp [Sun, 21 Jul 2002 04:18:20 +0000 (04:18 +0000)]
Remove __FreeBSD__ version abuse, also de-orbit support for FreeBSD 2
and FreeBSD 3.

22 years ago o If the page returned by vm_page_grab(VM_ALLOC_ZERO) isn't prezeroed,
alc [Sun, 21 Jul 2002 04:07:26 +0000 (04:07 +0000)]
 o If the page returned by vm_page_grab(VM_ALLOC_ZERO) isn't prezeroed,
   zero it.

Reviewed by: dfr, peter

22 years agoAdd bus_child_present and the child_present method to bus_if.m
imp [Sun, 21 Jul 2002 03:28:43 +0000 (03:28 +0000)]
Add bus_child_present and the child_present method to bus_if.m

22 years agoFix overflows in intermediate calculations in sysctl_msec_to_ticks().
jdp [Sat, 20 Jul 2002 23:48:59 +0000 (23:48 +0000)]
Fix overflows in intermediate calculations in sysctl_msec_to_ticks().
At hz values of 1000 and above the overflows caused net.inet.tcp.keepidle
to be reported as negative.

MFC after: 3 days

22 years agoDon't export 'struct ipq' from kernel, instead #ifdef _KERNEL. As kernel
rwatson [Sat, 20 Jul 2002 22:46:20 +0000 (22:46 +0000)]
Don't export 'struct ipq' from kernel, instead #ifdef _KERNEL.  As kernel
data structures pick up security and synchronization primitives, it
becomes increasingly desirable not to arbitrarily export them via
include files to userland, as the userland applications pick up new
#include dependencies.

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

22 years agoDo preserve the error result from calling p_cansee() and use that when
rwatson [Sat, 20 Jul 2002 22:44:39 +0000 (22:44 +0000)]
Do preserve the error result from calling p_cansee() and use that when
failing because of the error.

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

22 years agoAdd support for writing to mapping high memory for pccard memory
imp [Sat, 20 Jul 2002 22:29:23 +0000 (22:29 +0000)]
Add support for writing to mapping high memory for pccard memory
windows.  Right now we only support pci chips that are memory mapped.
These are the most common bridges in use today and will help a large
majority of the users.

I/O mapped PCI chips support this functionality in a different way, as
do some of the ISA bridges (but only when mounted on a motherboard).
These chips are not supported by this change.

22 years ago o Lock page queue accesses by vm_page_try_to_cache(). (The accesses
alc [Sat, 20 Jul 2002 20:58:46 +0000 (20:58 +0000)]
 o Lock page queue accesses by vm_page_try_to_cache().  (The accesses
   in kern/vfs_bio.c are already locked.)
 o Assert that the page queues lock is held in vm_page_try_to_cache().

22 years ago o Assert that the page queues lock is held in vm_page_try_to_free().
alc [Sat, 20 Jul 2002 20:12:57 +0000 (20:12 +0000)]
 o Assert that the page queues lock is held in vm_page_try_to_free().

22 years ago o Lock page queue accesses by vm_page_cache() in vm_fault() and
alc [Sat, 20 Jul 2002 19:34:21 +0000 (19:34 +0000)]
 o Lock page queue accesses by vm_page_cache() in vm_fault() and
   vm_pageout_scan().  (The others are already locked.)
 o Assert that the page queues lock is held in vm_page_cache().

22 years agoConnect up gpt and mca subdirs for ia64
peter [Sat, 20 Jul 2002 19:32:33 +0000 (19:32 +0000)]
Connect up gpt and mca subdirs for ia64

22 years agoGrab a snapshot of Marcel's WIP ia64 machine check decoder.
peter [Sat, 20 Jul 2002 19:31:11 +0000 (19:31 +0000)]
Grab a snapshot of Marcel's WIP ia64 machine check decoder.

Obtained from:  marcel

22 years agoGrab a snapshot of Marcel's gpt tool. This is still a work-in-progress
peter [Sat, 20 Jul 2002 19:27:43 +0000 (19:27 +0000)]
Grab a snapshot of Marcel's gpt tool.  This is still a work-in-progress
but is useful to have handy.  EFI GPT partitions are used instead of the
fdisk+disklabel combination.  They are pure 64 bit LBA, are fully
extensible, support up to 16383 partitons per disk, etc.

22 years agoAdd an ia64 atomic lock primitive for libc_r. This is mostly for
peter [Sat, 20 Jul 2002 19:22:10 +0000 (19:22 +0000)]
Add an ia64 atomic lock primitive for libc_r.  This is mostly for
completeness and doesn't get us a working libc_r there because libc_r
uses setjmp() and setjmp() cannot be used for context switches on ia64
as-is (or sparc64).  Rather than making setjmp/longjmp behave like
the *context() calls, it would be far better to make libc_r use *context()
directly which is what they are for.

Obtained from:  marcel

22 years agominor nit in comments
imp [Sat, 20 Jul 2002 18:59:58 +0000 (18:59 +0000)]
minor nit in comments

22 years ago o Lock accesses to the active page queue in vm_pageout_scan() and
alc [Sat, 20 Jul 2002 18:45:25 +0000 (18:45 +0000)]
 o Lock accesses to the active page queue in vm_pageout_scan() and
   vm_pageout_page_stats().

22 years agosys.mk no longer includes bsd.own.mk.
ru [Sat, 20 Jul 2002 10:56:00 +0000 (10:56 +0000)]
sys.mk no longer includes bsd.own.mk.

22 years agoIndentation.
ru [Sat, 20 Jul 2002 10:01:00 +0000 (10:01 +0000)]
Indentation.

22 years agoUpgrade make(1) if not passing the ``.if defined(notdef) && ${notdef:U}''
ru [Sat, 20 Jul 2002 10:00:10 +0000 (10:00 +0000)]
Upgrade make(1) if not passing the ``.if defined(notdef) && ${notdef:U}''
test (revealed by bsd.lib.mk,v 1.134).

22 years agoTypo: s/If the this option/If this option/
schweikh [Sat, 20 Jul 2002 09:25:55 +0000 (09:25 +0000)]
Typo: s/If the this option/If this option/

MFC after: 1 week

22 years agoebus is not a 'count' device. There are no NEBUS references.
peter [Sat, 20 Jul 2002 08:16:51 +0000 (08:16 +0000)]
ebus is not a 'count' device.  There are no NEBUS references.

22 years agoChange the max IRQ from 63 to 255. I realize we have to block some out
peter [Sat, 20 Jul 2002 06:25:47 +0000 (06:25 +0000)]
Change the max IRQ from 63 to 255.  I realize we have to block some out
still for the IPI vectors, but 63 isn't enough.  There is an fxp at IRQ 86
on the Itanium2 box I have.

22 years ago o Lock page queue accesses by vm_page_cache() in vm_contig_launder().
alc [Sat, 20 Jul 2002 06:11:16 +0000 (06:11 +0000)]
 o Lock page queue accesses by vm_page_cache() in vm_contig_launder().
 o Micro-optimize the control flow in vm_contig_launder().

22 years ago o Remove dead and/or unused code.
alc [Sat, 20 Jul 2002 05:06:20 +0000 (05:06 +0000)]
 o Remove dead and/or unused code.

22 years agoDocument that only one of the -n and -e options may be specified for
tjr [Sat, 20 Jul 2002 04:39:23 +0000 (04:39 +0000)]
Document that only one of the -n and -e options may be specified for
sh(1)'s echo(1) builtin command.

PR: 32935, 40747
MFC after: 1 week

22 years agoReimplement malloc/free debugging that includes the offending file:line
peter [Sat, 20 Jul 2002 04:18:20 +0000 (04:18 +0000)]
Reimplement malloc/free debugging that includes the offending file:line
info.  This turned out to be rather useful on ia64 for tracking down
malloc/free problems.
Detect duplicate free()'s - otherwise these show up as a guard1 failure
and it looks like corruption instead of something simple like a second
free() where there shouldn't be.
Deal with libz using libc headers and not seeing the malloc/free stuff that
we provide in libstand.  Do similar nastiness to what is done for bzlib.

Tested on: i386, ia64 (compile, run)

22 years agoAdd a missing argument to the stub for softdep_setup_freeblocks.
benno [Sat, 20 Jul 2002 04:07:15 +0000 (04:07 +0000)]
Add a missing argument to the stub for softdep_setup_freeblocks.

Forgotten by: mckusick

22 years agoAdd __printflike() to printf() and sprintf() prototypes. -ffreestanding
peter [Sat, 20 Jul 2002 03:55:06 +0000 (03:55 +0000)]
Add __printflike() to printf() and sprintf() prototypes.  -ffreestanding
turns off gcc's builtin attributes for these functions and as a result
-Wformat does no checking. (argh)

22 years agoTurn on -Wformat
peter [Sat, 20 Jul 2002 03:52:37 +0000 (03:52 +0000)]
Turn on -Wformat

22 years agoFix printf format errors
peter [Sat, 20 Jul 2002 03:52:18 +0000 (03:52 +0000)]
Fix printf format errors

22 years agoWork around some nasty bugs on the [beta] Itanium2's E1000 UNDI driver.
peter [Sat, 20 Jul 2002 03:51:53 +0000 (03:51 +0000)]
Work around some nasty bugs on the [beta] Itanium2's E1000 UNDI driver.

Bug#1: The GetStatus() function returns radically different pointers that
do not match any packets we transmitted.  I think it might be pointing to
a copy of the packet or something.  Since we do not transmit more than
one packet at a time, just wait for "anything".

Bug#2: The Receive() function takes a pointer and a length.  However, it
either ignores the length or otherwise does bad things and writes outside
of ptr[0] through ptr[len-1].  This is bad and causes massive stack
corruption for us since we are receiving packets into small buffers on
the stack.  Instead, Receive() into a large enough buffer and bcopy the
data to the requested area.

22 years agoDisable loader ufs support. It causes the loader to crash on the Itanium2
peter [Sat, 20 Jul 2002 03:46:43 +0000 (03:46 +0000)]
Disable loader ufs support.  It causes the loader to crash on the Itanium2
box that I have.  We have no EFI disk drivers yet anyway (maybe that is the
problem).

22 years agoFix printf format errors
peter [Sat, 20 Jul 2002 03:44:01 +0000 (03:44 +0000)]
Fix printf format errors

22 years agoRegenerate
peter [Sat, 20 Jul 2002 02:56:34 +0000 (02:56 +0000)]
Regenerate

22 years agoInfrastructure tweaks to allow having both an Elf32 and an Elf64 executable
peter [Sat, 20 Jul 2002 02:56:12 +0000 (02:56 +0000)]
Infrastructure tweaks to allow having both an Elf32 and an Elf64 executable
handler in the kernel at the same time.  Also, allow for the
exec_new_vmspace() code to build a different sized vmspace depending on
the executable environment.  This is a big help for execing i386 binaries
on ia64.   The ELF exec code grows the ability to map partial pages when
there is a page size difference, eg: emulating 4K pages on 8K or 16K
hardware pages.

Flesh out the i386 emulation support for ia64.  At this point, the only
binary that I know of that fails is cvsup, because the cvsup runtime
tries to execute code in pages not marked executable.

Obtained from:  dfr (mostly, many tweaks from me).

22 years agoFix a warning:
peter [Sat, 20 Jul 2002 01:09:35 +0000 (01:09 +0000)]
Fix a warning:
ffs_softdep.c:1630: warning: int format, different type arg (arg 2)

22 years agoAdd PCI IDs for the A, B, and C UHCI controllers in the ICH4.
jhb [Fri, 19 Jul 2002 22:17:02 +0000 (22:17 +0000)]
Add PCI IDs for the A, B, and C UHCI controllers in the ICH4.

Sponsored by: The Weather Channel

22 years agoAdd PCI ID for the ICH4 ATA100 controller.
jhb [Fri, 19 Jul 2002 22:14:54 +0000 (22:14 +0000)]
Add PCI ID for the ICH4 ATA100 controller.

Sponsored by: The Weather Channel

22 years agoSet P_NOLOAD on the pagezero kthread so that it doesn't artificially skew
peter [Fri, 19 Jul 2002 21:06:01 +0000 (21:06 +0000)]
Set P_NOLOAD on the pagezero kthread so that it doesn't artificially skew
the loadav.  This is not real load.  If you have a nice process running in
the background, pagezero may sit in the run queue for ages and add one to
the loadav, and thereby affecting other scheduling decisions.

22 years ago o Use vm_page_alloc(... | VM_ALLOC_WIRED) in place of vm_page_wire().
alc [Fri, 19 Jul 2002 19:35:06 +0000 (19:35 +0000)]
 o Use vm_page_alloc(... | VM_ALLOC_WIRED) in place of vm_page_wire().

22 years agoOnly define SHLIB_LINK if SHLIB_NAME matches the *.so.* pattern.
ru [Fri, 19 Jul 2002 18:40:13 +0000 (18:40 +0000)]
Only define SHLIB_LINK if SHLIB_NAME matches the *.so.* pattern.
(Useful for RELENG_4's lib/libpam/modules.)

22 years agoAdd support for probing secondary buses on the ServerWorks Grand Champion
gallatin [Fri, 19 Jul 2002 18:35:08 +0000 (18:35 +0000)]
Add support for probing secondary buses on the ServerWorks Grand Champion
chipset used for P4-Xeon machines

PR: kern/38894
Tested-by: "Marc G. Fournier" <scrappy@hub.org>
Submitted-by: Mark Tinguely (partially)
22 years agoAdd the tcps_sndrexmitbad statistic, keep track of late acks that caused
dillon [Fri, 19 Jul 2002 18:29:38 +0000 (18:29 +0000)]
Add the tcps_sndrexmitbad statistic, keep track of late acks that caused
unnecessary retransmissions.

22 years agoWrap a line longer than 80 characters.
mux [Fri, 19 Jul 2002 17:44:44 +0000 (17:44 +0000)]
Wrap a line longer than 80 characters.

22 years agoMerge conflicts.
markm [Fri, 19 Jul 2002 16:38:21 +0000 (16:38 +0000)]
Merge conflicts.

22 years ago- Merge the mount options at MNT_UPDATE time with vfs_mergeopts().
mux [Fri, 19 Jul 2002 16:05:31 +0000 (16:05 +0000)]
- Merge the mount options at MNT_UPDATE time with vfs_mergeopts().
- Sanity check the mount options list (remove duplicates) with
  vfs_sanitizeopts().
- Fix some malloc(0)/free(NULL) bugs.

Reviewed by: rwatson (some time ago)

22 years agoThis commit was generated by cvs2svn to compensate for changes in r100360,
markm [Fri, 19 Jul 2002 15:19:23 +0000 (15:19 +0000)]
This commit was generated by cvs2svn to compensate for changes in r100360,
which included commits to RCS files with non-trunk default branches.

22 years agoSnapshot of NetBSD's (x)lint. Little functionality, just some code
markm [Fri, 19 Jul 2002 15:19:23 +0000 (15:19 +0000)]
Snapshot of NetBSD's (x)lint. Little functionality, just some code
tidy-ups.

22 years agos/inline/__inline/
markm [Fri, 19 Jul 2002 14:12:27 +0000 (14:12 +0000)]
s/inline/__inline/

22 years agoMerge from import. The import was done ages ago, and this diff has been
markm [Fri, 19 Jul 2002 14:10:35 +0000 (14:10 +0000)]
Merge from import. The import was done ages ago, and this diff has been
carried since then.

22 years agos/inline/__inline/
markm [Fri, 19 Jul 2002 13:49:37 +0000 (13:49 +0000)]
s/inline/__inline/

22 years ago"inline" fixing. Replace "inline" with "__inline" to make more BSD
markm [Fri, 19 Jul 2002 13:38:43 +0000 (13:38 +0000)]
"inline" fixing. Replace "inline" with "__inline" to make more BSD
standard (and easier to define away with support in cdefs.h).
Also convert two function-like macros to static inline functions
for lint and the debugger.

22 years agoUpdate to current reality: change COMPILEDIR and work on "R"ead-only-data
phk [Fri, 19 Jul 2002 10:29:07 +0000 (10:29 +0000)]
Update to current reality: change COMPILEDIR and work on "R"ead-only-data
symbols as well.

22 years agoRemove broken and incomplete support for old releases of System V,
tjr [Fri, 19 Jul 2002 08:09:04 +0000 (08:09 +0000)]
Remove broken and incomplete support for old releases of System V,
don't support system that implement getcwd(3) with a pipe to /bin/pwd.

22 years agoAdd the ebus sio attachment.
obrien [Fri, 19 Jul 2002 08:03:14 +0000 (08:03 +0000)]
Add the ebus sio attachment.

22 years agoDon't install any old cruft present in the tree, including
ru [Fri, 19 Jul 2002 07:51:58 +0000 (07:51 +0000)]
Don't install any old cruft present in the tree, including
editor backups, .orig or .rej files, etc.  Make transition
from SHARED=symlinks to SHARED=copies and vice versa work.

Submitted by: des, ru

22 years agoAdd support to UFS2 to provide storage for extended attributes.
mckusick [Fri, 19 Jul 2002 07:29:39 +0000 (07:29 +0000)]
Add support to UFS2 to provide storage for extended attributes.
As this code is not actually used by any of the existing
interfaces, it seems unlikely to break anything (famous
last words).

The internal kernel interface to manipulate these attributes
is invoked using two new IO_ flags: IO_NORMAL and IO_EXT.
These flags may be specified in the ioflags word of VOP_READ,
VOP_WRITE, and VOP_TRUNCATE. Specifying IO_NORMAL means that
you want to do I/O to the normal data part of the file and
IO_EXT means that you want to do I/O to the extended attributes
part of the file. IO_NORMAL and IO_EXT are mutually exclusive
for VOP_READ and VOP_WRITE, but may be specified individually
or together in the case of VOP_TRUNCATE. For example, when
removing a file, VOP_TRUNCATE is called with both IO_NORMAL
and IO_EXT set. For backward compatibility, if neither IO_NORMAL
nor IO_EXT is set, then IO_NORMAL is assumed.

Note that the BA_ and IO_ flags have been `merged' so that they
may both be used in the same flags word. This merger is possible
by assigning the IO_ flags to the low sixteen bits and the BA_
flags the high sixteen bits. This works because the high sixteen
bits of the IO_ word is reserved for read-ahead and help with
write clustering so will never be used for flags. This merge
lets us get away from code of the form:

        if (ioflags & IO_SYNC)
                flags |= BA_SYNC;

For the future, I have considered adding a new field to the
vattr structure, va_extsize. This addition could then be
exported through the stat structure to allow applications to
find out the size of the extended attribute storage and also
would provide a more standard interface for truncating them
(via VOP_SETATTR rather than VOP_TRUNCATE).

I am also contemplating adding a pathconf parameter (for
concreteness, lets call it _PC_MAX_EXTSIZE) which would
let an application determine the maximum size of the extended
atribute storage.

Sponsored by: DARPA & NAI Labs.

22 years ago o Duplicate an odd side-effect of vm_page_wire() in vm_page_allocate()
alc [Fri, 19 Jul 2002 03:33:04 +0000 (03:33 +0000)]
 o Duplicate an odd side-effect of vm_page_wire() in vm_page_allocate()
   when VM_ALLOC_WIRED is specified: set the PG_MAPPED bit in flags.
 o In both vm_page_wire() and vm_page_allocate() add a comment saying
   that setting PG_MAPPED does not belong there.

22 years agoClear up confusion in ugly code. ^T gave wrong results for RSS.
julian [Thu, 18 Jul 2002 21:19:56 +0000 (21:19 +0000)]
Clear up confusion in ugly code.  ^T gave wrong results for RSS.
I misinterpretted this code when changing it to handle threads.
(there are still issues here)
Submitted by: Ian Dowse <iedowse@maths.tcd.ie>

22 years agoTry to give a more descriptive error message for the pilot error of
joerg [Thu, 18 Jul 2002 20:52:17 +0000 (20:52 +0000)]
Try to give a more descriptive error message for the pilot error of
attempting to export the non-root of a filesystem with -alldirs.  This
pilot error seems to be very common, and the "could not remount" error
message doesn't give much hints about the real reason.  See the old PR
below for an example.

While i was at it, make it possible to entirely omit the often
annoying error message in that case by specifying the "quiet" exports
flag.  This allows to specify something like

/cdrom -alldirs,ro,quiet <where to export to>

which will silently fail if nothing is mounted under /cdrom, but do
the rigth thing as soon as you mount something.

While doing this, i've put the embedded example in the exports(5) man
page into a subsection of its own as it ought to be.

Thanks for Paul Southworth for reminding me about this problem.

PR: bin/4448
MFC after: 1 month

22 years agoIntroduce two new sysctl's:
dillon [Thu, 18 Jul 2002 19:06:12 +0000 (19:06 +0000)]
Introduce two new sysctl's:

net.inet.tcp.rexmit_min (default 3 ticks equiv)

    This sysctl is the retransmit timer RTO minimum,
    specified in milliseconds.  This value is
    designed for algorithmic stability only.

net.inet.tcp.rexmit_slop (default 200ms)

    This sysctl is the retransmit timer RTO slop
    which is added to every retransmit timeout and
    is designed to handle protocol stack overheads
    and delayed ack issues.

Note that the *original* code applied a 1-second
RTO minimum but never applied real slop to the RTO
calculation, so any RTO calculation over one second
would have no slop and thus not account for
protocol stack overheads (TCP timestamps are not
a measure of protocol turnaround!).  Essentially,
the original code made the RTO calculation almost
completely irrelevant.

Please note that the 200ms slop is debateable.
This commit is not meant to be a line in the sand,
and if the community winds up deciding that increasing
it is the correct solution then it's easy to do.
Note that larger values will destroy performance
on lossy networks while smaller values may result in
a greater number of unnecessary retransmits.

22 years agoRemove unused calls to inet_addr()
brian [Thu, 18 Jul 2002 18:50:05 +0000 (18:50 +0000)]
Remove unused calls to inet_addr()

22 years agoCorrection to the previous revision: define SHLIB_LINK if SHLIB_NAME
ru [Thu, 18 Jul 2002 17:44:20 +0000 (17:44 +0000)]
Correction to the previous revision: define SHLIB_LINK if SHLIB_NAME
is defined (whether or not LIB is defined).

22 years ago o Remove the acquisition and release of Giant from the idle priority thread
alc [Thu, 18 Jul 2002 17:40:07 +0000 (17:40 +0000)]
 o Remove the acquisition and release of Giant from the idle priority thread
   that pre-zeroes free pages.
 o Remove GIANT_REQUIRED from some low-level page queue functions.  (Instead
   assertions on the page queue lock are being added to the higher-level
   functions, like vm_page_wire(), etc.)

In collaboration with: peter

22 years agoMFCs noted: OPIE 2.4, OpenBSD m4 20020426, GNU tar 1.3.25.
bmah [Thu, 18 Jul 2002 16:06:46 +0000 (16:06 +0000)]
MFCs noted:  OPIE 2.4, OpenBSD m4 20020426, GNU tar 1.3.25.

22 years agoBeautify. This has the side effect of improving portability and
markm [Thu, 18 Jul 2002 15:56:46 +0000 (15:56 +0000)]
Beautify. This has the side effect of improving portability and
making lint work cleaner.

Inspired to do this by: jhb

22 years agoVoid functions cannot return values.
markm [Thu, 18 Jul 2002 15:53:11 +0000 (15:53 +0000)]
Void functions cannot return values.

22 years agoRemove boot2 temporarily.
nyan [Thu, 18 Jul 2002 14:50:41 +0000 (14:50 +0000)]
Remove boot2 temporarily.

22 years agoAdd initialization code for the AMD Elan sc520 which maps the MMCR
phk [Thu, 18 Jul 2002 12:56:54 +0000 (12:56 +0000)]
Add initialization code for the AMD Elan sc520 which maps the MMCR
into KVM and sets the i8254 frequency to the correct value.

22 years agoTo force install(1) to always compare files before installing, one
ru [Thu, 18 Jul 2002 12:54:55 +0000 (12:54 +0000)]
To force install(1) to always compare files before installing, one
now needs to set COPY=-C as -C is no longer compatible with the -d
option.  It is also likely to be renamed to INSTALL_COPY soon.
Update documentation to reflect this change.

PR: bin/40724

22 years agoRemove the statically allocated array that holds OpenFirmware memory mappings
benno [Thu, 18 Jul 2002 12:43:08 +0000 (12:43 +0000)]
Remove the statically allocated array that holds OpenFirmware memory mappings
during pmap_bootstrap.  Instead, temporarily help ourselves to some memory
from phys_avail since we won't need it post-boostrap.

22 years agoMajor rework of how we copy data into kernel space.
benno [Thu, 18 Jul 2002 12:39:02 +0000 (12:39 +0000)]
Major rework of how we copy data into kernel space.

We now talk to the memory and mmu instances directly rather than using the
OpenFirmware "claim" method.

22 years agoInstall scripts via FILES (purposedly not via SCRIPTS that would
ru [Thu, 18 Jul 2002 12:33:01 +0000 (12:33 +0000)]
Install scripts via FILES (purposedly not via SCRIPTS that would
strip the suffixes).

22 years agoDon't assume file descriptors fit in a short, use an int instead.
tjr [Thu, 18 Jul 2002 12:24:35 +0000 (12:24 +0000)]
Don't assume file descriptors fit in a short, use an int instead.

22 years agoAdded groff(1) and natd(8) entries.
ru [Thu, 18 Jul 2002 12:12:15 +0000 (12:12 +0000)]
Added groff(1) and natd(8) entries.

22 years agos/${INSTALL} -c/${INSTALL} ${COPY}/
ru [Thu, 18 Jul 2002 12:07:49 +0000 (12:07 +0000)]
s/${INSTALL} -c/${INSTALL} ${COPY}/

22 years agos/install -c/${INSTALL} ${COPY}/
ru [Thu, 18 Jul 2002 12:02:20 +0000 (12:02 +0000)]
s/install -c/${INSTALL} ${COPY}/

22 years agoAdd an entry for the AMD Elan SC520 hostbridge. I do not belive we can
phk [Thu, 18 Jul 2002 10:57:20 +0000 (10:57 +0000)]
Add an entry for the AMD Elan SC520 hostbridge.  I do not belive we can
identify this gadget on the CPUID result alone, so I intend to activate
the necessary magic (i8254 frequency for instance) for it based on the
precense of the on-chip host to PCI bridge.

22 years ago(VM_MAX_KERNEL_ADDRESS - KERNBASE) / PAGE_SIZE may not fit in an integer.
peter [Thu, 18 Jul 2002 10:28:00 +0000 (10:28 +0000)]
(VM_MAX_KERNEL_ADDRESS - KERNBASE) / PAGE_SIZE  may not fit in an integer.
Use lmin(long, long), not min(u_int, u_int).  This is a problem here on
ia64 which has *way* more than 2^32 pages of KVA.  281474976710655 pages
to be precice.

22 years agoAvoid using ints or shorts to store process id's, use pid_t instead.
tjr [Thu, 18 Jul 2002 10:22:42 +0000 (10:22 +0000)]
Avoid using ints or shorts to store process id's, use pid_t instead.
The pgrp member of struct job was declared as a short and could not store
every possible process group ID value, the rest of them were benign because
pid_t happens to be an int.

22 years agoMake the message that is printed when the foreground process is terminated
tjr [Thu, 18 Jul 2002 09:37:51 +0000 (09:37 +0000)]
Make the message that is printed when the foreground process is terminated
by a signal the same as pdksh/bash/sh before rev. 1.34.

22 years agoMove the definition of FreeBSD 4.6 back to where it belongs.
ru [Thu, 18 Jul 2002 09:32:15 +0000 (09:32 +0000)]
Move the definition of FreeBSD 4.6 back to where it belongs.

22 years agoAdd definition for FreeBSD 4.6.1.
murray [Thu, 18 Jul 2002 09:22:33 +0000 (09:22 +0000)]
Add definition for FreeBSD 4.6.1.

22 years agoRevert last change.
murray [Thu, 18 Jul 2002 09:15:54 +0000 (09:15 +0000)]
Revert last change.

Requested by: ru

22 years agoIntegrate the hw.pcic.pd6722_vsense tunable from the nomads list.
imp [Thu, 18 Jul 2002 08:13:45 +0000 (08:13 +0000)]
Integrate the hw.pcic.pd6722_vsense tunable from the nomads list.
This allows one to select the method of 3.3V card detection from the
three possible choices (none (0), the "6710 way" (1) and the "6729
way" (2)).  The default is the 6710 way, since it works in the most
cases.  The datasheets for the 6722 suggest that the '29 way is more
correct, but experience has shown this method to cause some laptops to
hang solid.  See source code for details until I update the man page.

Submitted by: shibata-san (chiharu shibata <chi@bd.mbn.or.jp>)

22 years agoSome strange hacks for the clpd6729:
imp [Thu, 18 Jul 2002 08:05:00 +0000 (08:05 +0000)]
Some strange hacks for the clpd6729:
o It needs to have pcic_isa_intr intrrupt handler
o for pci interrupts, in the func interrupt handler it needs to check the isa
  registers rather than the pci ones for card present.
o better commentary for some of the strangeness of the 6729 on pci
o fix some crunchy comments to better reflect reality.

With this I almost have the WL200 working, but an interrupt storm
after attach is causing problems for reasons unknown.  This code
doesn't seem to break the normal clpd6729 case, and I'd like others
with 6729 cards to try to test it (there were some that were used for
external pccard slots in pci only systems).

22 years agoTeach mdoc about FreeBSD 4.6.1
murray [Thu, 18 Jul 2002 08:04:12 +0000 (08:04 +0000)]
Teach mdoc about FreeBSD 4.6.1

22 years agoThe Compaq WL200 is a CL-PD6729 based pci card with a prism 2 pcmcia
imp [Thu, 18 Jul 2002 06:01:35 +0000 (06:01 +0000)]
The Compaq WL200 is a CL-PD6729 based pci card with a prism 2 pcmcia
card behind it (without the pcmcia form factor).  This entry gets to
the point of attaching, but there's something wrong with the '29
support, so it doesn't quite work yet.

22 years agoMove IPFW2 definition before including ip_fw.h
luigi [Thu, 18 Jul 2002 05:18:41 +0000 (05:18 +0000)]
Move IPFW2 definition before including ip_fw.h

Make indentation of new parts consistent with the style used for this file.

22 years agoRemove spurious "echo '.'".
dd [Thu, 18 Jul 2002 05:00:23 +0000 (05:00 +0000)]
Remove spurious "echo '.'".

22 years agoApply same fix as Rev 1.19 of /etc/rc.diskless2: create sendmail
bsd [Thu, 18 Jul 2002 05:00:22 +0000 (05:00 +0000)]
Apply same fix as Rev 1.19 of /etc/rc.diskless2: create sendmail
required directories if sendmail_enable is not set to "none".

Suggested by:   gordon

22 years agoAnonymize the "portmap" program to get better compatibility with
dougb [Thu, 18 Jul 2002 05:00:21 +0000 (05:00 +0000)]
Anonymize the "portmap" program to get better compatibility with
rpcbind in -current.

Submitted by:   Alexander Kabaev <ak03@gte.com>

22 years agoMake nisdomainname=NO DTRT
dougb [Thu, 18 Jul 2002 05:00:20 +0000 (05:00 +0000)]
Make nisdomainname=NO DTRT

Submitted by:   des, via Mike Makonnen <makonnen@pacbell.net>

22 years agoCleanup some pollution from the NetBSD sync, and add gif setup.
dougb [Thu, 18 Jul 2002 05:00:19 +0000 (05:00 +0000)]
Cleanup some pollution from the NetBSD sync, and add gif setup.

Submitted by:   Mike Makonnen <makonnen@pacbell.net>

22 years agoFix a typo that caused dhclient not to work.
gordon [Thu, 18 Jul 2002 05:00:18 +0000 (05:00 +0000)]
Fix a typo that caused dhclient not to work.

Submitted by:   Dennis Kristensen <snicki@snicki.dk>
Reviewed by:    Mike Makonnen <makonnen@pacbell.net>

22 years agoMerge in all the changes that Mike Makonnen has been maintaining for a
gordon [Thu, 18 Jul 2002 05:00:17 +0000 (05:00 +0000)]
Merge in all the changes that Mike Makonnen has been maintaining for a
while. This is only the script pieces, the glue for the build comes next.

Submitted by:   Mike Makonnen <makonnen@pacbell.net>
Reviewed by:    silence on -current and -hackers
Prodded by:     rwatson

22 years agobe able to configure to run an IPv6 routing daemon even on
ume [Thu, 18 Jul 2002 05:00:16 +0000 (05:00 +0000)]
be able to configure to run an IPv6 routing daemon even on
an end node.

Requested by: Masachika ISHIZUKA <ishizuka@ish.org>
MFC after: 1 week

22 years agofixed to make mbuf chain.
ume [Thu, 18 Jul 2002 04:18:56 +0000 (04:18 +0000)]
fixed to make mbuf chain.

Obtained from: KAME
MFC after: 1 week

22 years ago o Introduce an argument, VM_ALLOC_WIRED, that requests vm_page_alloc()
alc [Thu, 18 Jul 2002 04:08:10 +0000 (04:08 +0000)]
 o Introduce an argument, VM_ALLOC_WIRED, that requests vm_page_alloc()
   to return a wired page.
 o Use VM_ALLOC_WIRED within Alpha's pmap_growkernel().  Also, because
   Alpha's pmap_growkernel() calls vm_page_alloc() from within a critical
   section, specify VM_ALLOC_INTERRUPT instead of VM_ALLOC_SYSTEM.  (Only
   VM_ALLOC_INTERRUPT is implemented entirely with a spin mutex.)
 o Assert that the page queues mutex is held in vm_page_wire()
   on Alpha, just like the other platforms.