]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoThis commit was generated by cvs2svn to compensate for changes in r82367,
Mike Smith [Sun, 26 Aug 2001 22:28:18 +0000 (22:28 +0000)]
This commit was generated by cvs2svn to compensate for changes in r82367,
which included commits to RCS files with non-trunk default branches.

22 years agoVendor import of the Intel ACPI CA 20010816 update.
Mike Smith [Sun, 26 Aug 2001 22:28:18 +0000 (22:28 +0000)]
Vendor import of the Intel ACPI CA 20010816 update.

22 years agoI missed a typo in the last commit: s/whach/which/
Peter Wemm [Sun, 26 Aug 2001 21:55:54 +0000 (21:55 +0000)]
I missed a typo in the last commit: s/whach/which/

Submitted by: bde

22 years agoThe EXTENDED_GEOMETRY flag is really bit 7. This affects >2GB drives.
Peter Wemm [Sun, 26 Aug 2001 21:51:35 +0000 (21:51 +0000)]
The EXTENDED_GEOMETRY flag is really bit 7.  This affects >2GB drives.

PR: 29454
Submitted by: Rob Manchester <rmanches@vmware.com>

22 years agoStop using dirhash when a directory is removed, and ensure that we
Ian Dowse [Sun, 26 Aug 2001 20:47:19 +0000 (20:47 +0000)]
Stop using dirhash when a directory is removed, and ensure that we
never attempt to hash directories once they are deleted. This fixes
a problem where operations on a deleted directory could trigger
dirhash sanity panics.

22 years agoAdd support for the SiS 7018
George C A Reid [Sun, 26 Aug 2001 19:15:28 +0000 (19:15 +0000)]
Add support for the SiS 7018

PR: 30100
Submitted by: Ada Lim <adal@cse.unsw.edu.au>

22 years agoAdd a variable KRNLDEFDIR that specifies where to find the kernel
Paul Richards [Sun, 26 Aug 2001 18:39:07 +0000 (18:39 +0000)]
Add a variable KRNLDEFDIR that specifies where to find the kernel
config files.

It defaults to KRNLCONFDIR.

22 years agoTidy, reorder and adjust to more correctly reflect FreeBSD default
Mark Murray [Sun, 26 Aug 2001 18:15:32 +0000 (18:15 +0000)]
Tidy, reorder and adjust to more correctly reflect FreeBSD default
policy.

22 years agoIntroduce a "noroot_ok" option to make this module ignore authentications
Mark Murray [Sun, 26 Aug 2001 18:09:00 +0000 (18:09 +0000)]
Introduce a "noroot_ok" option to make this module ignore authentications
to a non-superuser if required.

22 years agoIntroduce better logging, error reporting and use of login_cap data.
Mark Murray [Sun, 26 Aug 2001 18:05:35 +0000 (18:05 +0000)]
Introduce better logging, error reporting and use of login_cap data.

22 years agoForced commit.
Mark Murray [Sun, 26 Aug 2001 18:03:29 +0000 (18:03 +0000)]
Forced commit.

Previous commit improved use of login_cap database. This can probably
be further improved.

22 years agoAdd extra logging detail. This needs a more general solution.
Mark Murray [Sun, 26 Aug 2001 17:57:44 +0000 (17:57 +0000)]
Add extra logging detail. This needs a more general solution.

22 years agoAdjust dependancies and build order. PAM needs RPC.
Mark Murray [Sun, 26 Aug 2001 17:49:51 +0000 (17:49 +0000)]
Adjust dependancies and build order. PAM needs RPC.

22 years agoMore libss removal.
Mark Murray [Sun, 26 Aug 2001 17:47:21 +0000 (17:47 +0000)]
More libss removal.

22 years agoAdjust dependancies; now that a PAM module (pam_unix) can change
Mark Murray [Sun, 26 Aug 2001 17:45:56 +0000 (17:45 +0000)]
Adjust dependancies; now that a PAM module (pam_unix) can change
NIS passwords, libpam needs rpc dependancies.

22 years agoBig module makeover; improve logging, standardise variable names,
Mark Murray [Sun, 26 Aug 2001 17:41:13 +0000 (17:41 +0000)]
Big module makeover; improve logging, standardise variable names,
introduce ability to change passwords for both "usual" Unix methods
and NIS.

22 years agoUse &os.numports; to track how many ports we have. Don't need to give
Bruce A. Mah [Sun, 26 Aug 2001 17:31:03 +0000 (17:31 +0000)]
Use &os.numports; to track how many ports we have.  Don't need to give
an example of a specific release in CDROM/DVD ordering.

22 years agoCosmetique fixes from bde
Andrey A. Chernov [Sun, 26 Aug 2001 10:38:29 +0000 (10:38 +0000)]
Cosmetique fixes from bde

22 years agoCosmetique & style fixes from bde
Andrey A. Chernov [Sun, 26 Aug 2001 10:28:58 +0000 (10:28 +0000)]
Cosmetique & style fixes from bde

22 years agoCosmetique & style fixes from bde
Andrey A. Chernov [Sun, 26 Aug 2001 10:23:49 +0000 (10:23 +0000)]
Cosmetique & style fixes from bde

22 years agothe IP_FW_GET code in ip_fw_ctl() sizes a buffer to hold information
Bill Fumerola [Sun, 26 Aug 2001 10:09:47 +0000 (10:09 +0000)]
the IP_FW_GET code in ip_fw_ctl() sizes a buffer to hold information
about rules and dynamic rules. it later fills this buffer with these
rules.

it also takes the opporunity to compare the expiration of the dynamic
rules with the current time and either marks them for deletion or simply
charges the countdown.

unfortunatly it does this all (the sizing, the buffer copying, and the
expiration GC) with no spl protection whatsoever. it was possible for
the dynamic rule(s) to be ripped out from under the request before it
had completed, resulting in corrupt memory dereferencing.

Reviewed by: ps
MFC before: 4.4-RELEASE, hopefully.

22 years agoAlpha uses openjade i.s.o. jade for docs generation. So go out
Wilko Bulte [Sun, 26 Aug 2001 07:52:56 +0000 (07:52 +0000)]
Alpha uses openjade i.s.o. jade for docs generation. So go out
and build the right port for make release.

Submitted by: bmah
Approved by: bmah
MFC after: 2 days

22 years agoPass NULL instead of MAXPHYS to the DMA allocation method. Be a bit more
Benno Rice [Sun, 26 Aug 2001 07:07:47 +0000 (07:07 +0000)]
Pass NULL instead of MAXPHYS to the DMA allocation method.  Be a bit more
verbose if we fail to allocate the DMA buffer.

22 years agoImprove the documentation for the various tunables. Document how to
Warner Losh [Sun, 26 Aug 2001 04:43:16 +0000 (04:43 +0000)]
Improve the documentation for the various tunables.  Document how to
force ISA routing of interrupts.  Warn the user that with ISA routing
of interrupts for PCI devices with more than one slot, polling mode is
in order.  Minor markup fixes as well and some white space/sentence
break changes (I did these as one commit since this file has been in
the tree only 4 days and I doubt that translation has begun).

22 years agoStop dereferencing 'r' unconditionally. Maybe it is NULL when ISA
Warner Losh [Sun, 26 Aug 2001 04:05:07 +0000 (04:05 +0000)]
Stop dereferencing 'r' unconditionally.  Maybe it is NULL when ISA
mode and using polling mode.

22 years agoEnd sentence with a period.
Dima Dorfman [Sun, 26 Aug 2001 02:37:22 +0000 (02:37 +0000)]
End sentence with a period.

22 years agoWhen compacting directories, ufs_direnter() always trusted DIRSIZ()
Ian Dowse [Sun, 26 Aug 2001 01:25:12 +0000 (01:25 +0000)]
When compacting directories, ufs_direnter() always trusted DIRSIZ()
to supply the number of bytes to be bcopy()'d to move an entry. If
d_ino == 0 however, DIRSIZ() is not guaranteed to return a sensible
length, so ufs_direnter could end up corrupting a directory during
compaction. In practice I believe this can only happen after fsck_ffs
has fixed a previously-corrupted directory.

We now deal with any mid-block unused entries specially to avoid
using DIRSIZ() or bcopy() on such entries. We also ensure that the
variables 'dsize' and 'spacefree' contain meaningful values at all
times. Add a few comments to describe better this intricate piece
of code.

The special handling of mid-block unused entries makes the dirhash-
specific bugfix in the previous revision (1.53) now uncecessary,
so this change removes it.

Reviewed by: mckusick

22 years agoPut a parenthesis in the right place (DUH!).
Brian Somers [Sat, 25 Aug 2001 23:41:37 +0000 (23:41 +0000)]
Put a parenthesis in the right place (DUH!).
This fixes the apparent immediate client timeout problem.

22 years agoFix last second typo
Warner Losh [Sat, 25 Aug 2001 22:53:47 +0000 (22:53 +0000)]
Fix last second typo

22 years agoBack out the isa/pci string reporting. It may cause panics.
Warner Losh [Sat, 25 Aug 2001 22:45:45 +0000 (22:45 +0000)]
Back out the isa/pci string reporting.  It may cause panics.

22 years agoThe tunable is hw.pcic.irq, but the hw.pcic.override_irq was how it was
Warner Losh [Sat, 25 Aug 2001 22:39:44 +0000 (22:39 +0000)]
The tunable is hw.pcic.irq, but the hw.pcic.override_irq was how it was
reported in sysctl.

22 years agoFix cut-and-paste-o that Nate found. We were setting csc_route twice,
Warner Losh [Sat, 25 Aug 2001 22:04:00 +0000 (22:04 +0000)]
Fix cut-and-paste-o that Nate found.  We were setting csc_route twice,
rather than setting it once and setting func_route when we can't route
PCI interrupts.

22 years agoConsistently use 'queueing' instead of 'queuing'. Both spellings are
Dima Dorfman [Sat, 25 Aug 2001 21:58:58 +0000 (21:58 +0000)]
Consistently use 'queueing' instead of 'queuing'.  Both spellings are
correct, but the former seems to be preferred.  This makes all of the
section-4 manual pages consistent in this respect.

22 years agoRevert my queueing -> queuing commit. Both spellings are correct, and
Dima Dorfman [Sat, 25 Aug 2001 21:57:02 +0000 (21:57 +0000)]
Revert my queueing -> queuing commit.  Both spellings are correct, and
some people prefer the former.

Submitted by: ken, nectar

22 years agoRemove description of an option that only applies to UNICOS < 7.0.
Dima Dorfman [Sat, 25 Aug 2001 21:29:12 +0000 (21:29 +0000)]
Remove description of an option that only applies to UNICOS < 7.0.
That define may still be present in the source, but I don't think
anyone has plans to try to use it.

Obtained from: NetBSD

22 years agoRemove MAP_INHERIT flag from mmaps.
Matthew Dillon [Sat, 25 Aug 2001 18:06:32 +0000 (18:06 +0000)]
Remove MAP_INHERIT flag from mmaps.

22 years agoo Replace reference to param.h with types.h
Robert Watson [Sat, 25 Aug 2001 15:19:37 +0000 (15:19 +0000)]
o Replace reference to param.h with types.h
o Verbosicize reference to .fa mode

Obtained from: TrustedBSD Project

22 years agoo Add a man page for the kernel vaccess() call, a utility function to
Robert Watson [Sat, 25 Aug 2001 15:04:23 +0000 (15:04 +0000)]
o Add a man page for the kernel vaccess() call, a utility function to
  generate access control decisions.

Obtained from: TrustedBSD Project

22 years agoo Note that the ASU accounting flag has now been deprecated.
Robert Watson [Sat, 25 Aug 2001 14:55:57 +0000 (14:55 +0000)]
o Note that the ASU accounting flag has now been deprecated.

Submitted by: tmm
Obtained from: TrustedBSD Project

22 years agoo s/violate/override/ Capabilities are part of the system policy, not
Robert Watson [Sat, 25 Aug 2001 14:37:01 +0000 (14:37 +0000)]
o s/violate/override/  Capabilities are part of the system policy, not
  an exception to it.

Submitted by: tmm
Obtained from: TrustedBSD Project

22 years agoDocument that IFF_MULTICAST should be ORd with IFF_POINTOPOINT or
Brian Somers [Sat, 25 Aug 2001 09:14:55 +0000 (09:14 +0000)]
Document that IFF_MULTICAST should be ORd with IFF_POINTOPOINT or
IFF_BROADCAST for the TUNSIFMODE ioctl.

22 years agoTUNSIFINFO now expects IFF_MULTICAST to be OR'd with either IFF_POINTOPOINT
Brian Somers [Sat, 25 Aug 2001 09:12:57 +0000 (09:12 +0000)]
TUNSIFINFO now expects IFF_MULTICAST to be OR'd with either IFF_POINTOPOINT
or IFF_BROADCAST.  If it's not, the IFF_MULTICAST is removed.

This is in line with how NetBSD & OpenBSD do it.

22 years agoArgh! Revert accidental commit.
Peter Wemm [Sat, 25 Aug 2001 07:42:27 +0000 (07:42 +0000)]
Argh! Revert accidental commit.

22 years agoFirst cut at getting the ISA routing working. If we can't route a PCI
Warner Losh [Sat, 25 Aug 2001 06:40:00 +0000 (06:40 +0000)]
First cut at getting the ISA routing working.  If we can't route a PCI
interrupt for the CSC interrupt, then we revert to ISA.  If we didn't
have an interrupt set up with hw.pcic.irq, then do polling.

Also, don't complain about ignoring function 1 for any devices except
pcic devices.  This would normally only show up if someone set
hw.pcic.ignore_function_1=1.

MFC: as soon as I can test it on some troublesome laptops.

22 years agoImplement idle zeroing of pages. I've been tinkering with this
Peter Wemm [Sat, 25 Aug 2001 05:00:44 +0000 (05:00 +0000)]
Implement idle zeroing of pages.  I've been tinkering with this
on and off since John Dyson left his work-in-progress.

It is off by default for now.  sysctl vm.zeroidle_enable=1 to turn it on.

There are some hacks here to deal with the present lack of preemption - we
yield after doing a small number of pages since we wont preempt otherwise.

This is basically Matt's algorithm [with hysteresis] with an idle process
to call it in a similar way it used to be called from the idle loop.

I cleaned up the includes a fair bit here too.

22 years agovm_page_zero_idle() is no longer MD.
Peter Wemm [Sat, 25 Aug 2001 04:54:25 +0000 (04:54 +0000)]
vm_page_zero_idle() is no longer MD.

22 years agoRemove a reference to MAP_INHERIT.
Peter Wemm [Sat, 25 Aug 2001 04:27:40 +0000 (04:27 +0000)]
Remove a reference to MAP_INHERIT.

22 years agoUpdate rendition of a typical distribution directory. Text updates to
Bruce A. Mah [Sat, 25 Aug 2001 04:22:24 +0000 (04:22 +0000)]
Update rendition of a typical distribution directory.  Text updates to
follow.

22 years agoAdd another comment.
Julian Elischer [Sat, 25 Aug 2001 02:44:38 +0000 (02:44 +0000)]
Add another comment.
check for 'teh's this time..

22 years agoOptionize UPAGES for the i386. As part of this I split some of the low
Peter Wemm [Sat, 25 Aug 2001 02:20:02 +0000 (02:20 +0000)]
Optionize UPAGES for the i386.  As part of this I split some of the low
level implementation stuff out of machine/globaldata.h to avoid exposing
UPAGES to lots more places.  The end result is that we can double
the kernel stack size with 'options UPAGES=4' etc.

This is mainly being done for the benefit of a MFC to RELENG_4 at some
point.  -current doesn't really need this so much since each interrupt
runs on its own kstack.

22 years agos/teh/the/
Peter Wemm [Sat, 25 Aug 2001 02:06:59 +0000 (02:06 +0000)]
s/teh/the/

22 years agoAdd an explanatory note that would have saved me an hour or two
Julian Elischer [Sat, 25 Aug 2001 01:16:47 +0000 (01:16 +0000)]
Add an explanatory note that would have saved me an hour or two
of confusion had it been there when I started reading the code..

22 years agoJohn Polstra
Matt Jacob [Fri, 24 Aug 2001 23:08:13 +0000 (23:08 +0000)]
John  Polstra

bogus additional write to WXREG_IMASK that enabled *all* interrupt causes
while I was trying to disable the chip. Oops.

22 years agoForce a commit on kern_mutex.c to explain reason for last commit but while
Bosko Milekic [Fri, 24 Aug 2001 23:00:59 +0000 (23:00 +0000)]
Force a commit on kern_mutex.c to explain reason for last commit but while
I'm at it also add a comment in mtx_validate() explaining the purpose
of the last change.

Basically, this fixes booting kernels compiled with MUTEX_DEBUG. What used
to happen is before we setidt from init386() [still using BTX idt], we
called mtx_init() on several mutex locks, notably Giant and some others.
This is a problem for MUTEX_DEBUG because it enables mtx_validate() which
calls kernacc(), some of which in turn requires Giant.
Fix by calling kernacc() from mtx_validate() only if (!cold).

22 years ago*** empty log message ***
Bosko Milekic [Fri, 24 Aug 2001 22:53:45 +0000 (22:53 +0000)]
*** empty log message ***

22 years agoUse Brian Sommers' named entry
Warner Losh [Fri, 24 Aug 2001 21:43:35 +0000 (21:43 +0000)]
Use Brian Sommers' named entry

22 years agoRename the DIAGNOSTICS section to RETURN VALUES and describe the
Brian Somers [Fri, 24 Aug 2001 21:39:27 +0000 (21:39 +0000)]
Rename the DIAGNOSTICS section to RETURN VALUES and describe the
return values a little more.  Specifically, mention that a return
of 0 from NgRecvData() and NgRecvMsg() means the socket has been
closed.

Suggested by: jkh

22 years agoAdd INHERIT_XXX defines for minherit() system call.
Matthew Dillon [Fri, 24 Aug 2001 19:48:07 +0000 (19:48 +0000)]
Add INHERIT_XXX defines for minherit() system call.
Remove MAP_INHERIT - it is no longer supported.

22 years agoOk, third time is the charm. VM_INHERIT_XXX -> INHERIT_XX (use the same
Matthew Dillon [Fri, 24 Aug 2001 19:45:59 +0000 (19:45 +0000)]
Ok, third time is the charm.  VM_INHERIT_XXX -> INHERIT_XX (use the same
semantics as PROT_XXX vs VM_PROT_XXX separating user-space defines from
kernel defines).

22 years agoOops, minherit() uses VM_INHERIT_XXX as the argument, not MAP_XXX. Properly
Matthew Dillon [Fri, 24 Aug 2001 19:43:45 +0000 (19:43 +0000)]
Oops, minherit() uses VM_INHERIT_XXX as the argument, not MAP_XXX.  Properly
document minherit().

22 years agoRemove support for the badly broken MAP_INHERIT (from -current only).
Matthew Dillon [Fri, 24 Aug 2001 19:29:56 +0000 (19:29 +0000)]
Remove support for the badly broken MAP_INHERIT (from -current only).

22 years agoUpdate the mmap.2 and minherit.2 manual pages. Add a short explanation and
Matthew Dillon [Fri, 24 Aug 2001 19:28:00 +0000 (19:28 +0000)]
Update the mmap.2 and minherit.2 manual pages.  Add a short explanation and
referal from mmap to minherit for MAP_INHERIT.  Fully document the
minherit.2 manual page (because frankly, my dear, however you think it
currently works is almost certainly wrong!).  I may soon re-implement
MAP_COPY because I believe we can support it properly now, but I will have
to call it something else and that is for a later time.

22 years agoRemove MAP_NOEXTEND. It came from 4.4-lite and not only was never
Matthew Dillon [Fri, 24 Aug 2001 18:22:46 +0000 (18:22 +0000)]
Remove MAP_NOEXTEND.  It came from 4.4-lite and not only was never
implemented, but mmap()'s default behavior is *already* to not extend
files.  Only write() or ftruncate() can extend a file.

22 years agoStyle nits:
John Baldwin [Fri, 24 Aug 2001 17:46:58 +0000 (17:46 +0000)]
Style nits:
- Don't use punctuation or newlines in panic messages.
- Remove excess blank lines.

Requested and partially submitted by: bde

22 years agoExplain what we're doing in pcic_pci_shutdown a little better. Try to
Warner Losh [Fri, 24 Aug 2001 17:29:42 +0000 (17:29 +0000)]
Explain what we're doing in pcic_pci_shutdown a little better.  Try to
explain the subtle side effects that are going to happen and why we go
ahead and ack the interrupt source.  This stuff is tricky to get
right.

Also, emperical tests have shown that doing a shutdown in attach to be
ineffectual, so remove it from there.  Analysis of the code paths
shows that nearly identical writes to these registers happen in later
parts of the code.  The hanging problem on thinkpads when we change
the interrupt routing type is something else.

22 years agoAxe a commented, unused #define related to the old giant lock.
John Baldwin [Fri, 24 Aug 2001 16:52:31 +0000 (16:52 +0000)]
Axe a commented, unused #define related to the old giant lock.

22 years agoINTREN() and INTRDIS() have been MP safe for a while. Don't say that they
John Baldwin [Fri, 24 Aug 2001 16:51:47 +0000 (16:51 +0000)]
INTREN() and INTRDIS() have been MP safe for a while.  Don't say that they
are "soon to be" MP safe in the comments.

22 years agoRemove references to the old giant kernel lock in various comments.
John Baldwin [Fri, 24 Aug 2001 16:46:15 +0000 (16:46 +0000)]
Remove references to the old giant kernel lock in various comments.

22 years agoPrevent passing a null pointer as a filename to vn_open(),
Peter Pentchev [Fri, 24 Aug 2001 15:49:30 +0000 (15:49 +0000)]
Prevent passing a null pointer as a filename to vn_open(),
if for some reason expand_name() failed to build a core file name.

PR: 29931
Submitted by: Foldi Tamas <crow@kapu.hu>
Reviewed by: dd, -arch
MFC after: 1 month

22 years agoHandle return values of 0 from NgRecvMsg() properly.
Brian Somers [Fri, 24 Aug 2001 14:53:41 +0000 (14:53 +0000)]
Handle return values of 0 from NgRecvMsg() properly.

22 years agoUnderstand that a return value of 0 from NgRecvMsg() means that the
Brian Somers [Fri, 24 Aug 2001 14:52:38 +0000 (14:52 +0000)]
Understand that a return value of 0 from NgRecvMsg() means that the
socket was closed.

This prevents erroneous ``Unexpected netgraph version'' from turning
up in the log.

22 years agoExplain what the return value from NgRecvMsg() and NgRecvData() means,
Brian Somers [Fri, 24 Aug 2001 14:52:05 +0000 (14:52 +0000)]
Explain what the return value from NgRecvMsg() and NgRecvData() means,
specifically that 0 means the socket has been closed.

22 years agoFd is macro too, so use \&Fd
Andrey A. Chernov [Fri, 24 Aug 2001 11:12:58 +0000 (11:12 +0000)]
Fd is macro too, so use \&Fd

22 years agoFildes -> Fd too (started from big letter)
Andrey A. Chernov [Fri, 24 Aug 2001 11:05:11 +0000 (11:05 +0000)]
Fildes -> Fd too (started from big letter)

22 years agoChange
Andrey A. Chernov [Fri, 24 Aug 2001 10:59:32 +0000 (10:59 +0000)]
Change
start means ...
to
.Fa l_start
means ...

22 years agoFix up English from previous 3 revisions.
Sheldon Hearn [Fri, 24 Aug 2001 10:36:29 +0000 (10:36 +0000)]
Fix up English from previous 3 revisions.

There is no such argument 'fildes' in the SYNOPSIS.  It's called 'fd'.

22 years agoCopy from kern_lockf.c: remove extra check
Andrey A. Chernov [Fri, 24 Aug 2001 10:22:16 +0000 (10:22 +0000)]
Copy from kern_lockf.c: remove extra check

22 years agoRemove extra check unneded now
Andrey A. Chernov [Fri, 24 Aug 2001 10:20:26 +0000 (10:20 +0000)]
Remove extra check unneded now

22 years agoOn today's kernels masking with ~KERNBASE is turning out to be less
Peter Wemm [Fri, 24 Aug 2001 09:56:44 +0000 (09:56 +0000)]
On today's kernels masking with ~KERNBASE is turning out to be less
than useful.  It still hits at least 8 digits. Adjust for reality.

This is still not satisfactory for the alpha if you add "-O paddr".

22 years agoHandle kvm_getprocs() returning nothing. Dont pass -1 to a size
Peter Wemm [Fri, 24 Aug 2001 09:53:26 +0000 (09:53 +0000)]
Handle kvm_getprocs() returning nothing.  Dont pass -1 to a size
for malloc().

22 years agoMake ps -M corefile work again. This has been broken for quite some time.
Peter Wemm [Fri, 24 Aug 2001 09:43:44 +0000 (09:43 +0000)]
Make ps -M corefile work again.  This has been broken for quite some time.
kvm_proclist() was aborting when it saw the ithreads with no pgrp.

22 years agoBanish hard-coded KERNBASE references from savecore. Dynamically
Peter Wemm [Fri, 24 Aug 2001 09:26:17 +0000 (09:26 +0000)]
Banish hard-coded KERNBASE references from savecore.  Dynamically
adjust to whatever kernbase is in the kernel that we are dumping.

22 years agoDynamically adapt to kernbase changes on crashdumps, falling back to
Peter Wemm [Fri, 24 Aug 2001 09:12:04 +0000 (09:12 +0000)]
Dynamically adapt to kernbase changes on crashdumps, falling back to
KERNBASE if the "kernbase" symbol is not present on older kernels.

22 years agoDynamically adjust to the value of KERNBASE in a crashdump, with
Peter Wemm [Fri, 24 Aug 2001 08:53:30 +0000 (08:53 +0000)]
Dynamically adjust to the value of KERNBASE in a crashdump, with
a fallback for old kernels without the "kernbase" symbol.

22 years agoExport the actual KERNBASE to the symbol table. We can use nlist() to get
Peter Wemm [Fri, 24 Aug 2001 08:29:54 +0000 (08:29 +0000)]
Export the actual KERNBASE to the symbol table.  We can use nlist() to get
this without having to second guess it in userland.

22 years agoMove cpu_fxsr definition to C code (so debug info is generated) and where
Peter Wemm [Fri, 24 Aug 2001 08:27:24 +0000 (08:27 +0000)]
Move cpu_fxsr definition to C code (so debug info is generated) and where
it is easily #ifdef'ed so that we dont miss unintentional references to it.

22 years agoMove code to shutdown the pcic_pci_shutdown. Call it on system
Warner Losh [Fri, 24 Aug 2001 07:43:35 +0000 (07:43 +0000)]
Move code to shutdown the pcic_pci_shutdown.  Call it on system
shutdown and also before we get going with the device initialization.
This may fix the hangs some people are seeing on warmboot.  It appears
that some machines will reset the cardbus bridge on boot, while others
don't.  So we turn off the card, and ack the interrupts (which likely
is a nop in the shutdown case since we're still fielding interrupts).
This should turn off the interrupts.

Since I don't have hardware that hangs on reboot, I'm committing this
without testing that aspect of the patch (it causes no harm on my
Dell).

22 years agoTwo fixes. First, put into place a more generic chipset specific
Warner Losh [Fri, 24 Aug 2001 07:30:18 +0000 (07:30 +0000)]
Two fixes.  First, put into place a more generic chipset specific
initialization structure.  Warn the user for those chipsets that
aren't yet customized that they might not work.  Second, try to power
off the slot on attach and ack the interrupts.  I don't know, but this
might solve the hangs that people will see on Thinkpads if they set
hw.pcic.init_routing=1.

22 years agoGet rid of redundant device_set_desc. Both the PCI and PCCARD versions
Nick Sayer [Fri, 24 Aug 2001 05:47:50 +0000 (05:47 +0000)]
Get rid of redundant device_set_desc. Both the PCI and PCCARD versions
do this in the probe routine now.

22 years agoRemove a duplicate "that".
Kenneth D. Merry [Fri, 24 Aug 2001 02:24:58 +0000 (02:24 +0000)]
Remove a duplicate "that".

Submitted by: "Sergey A. Osokin" <osa@freebsd.org.ru>

22 years agoIn order for the MA301 to pass interrupts from the PCCard, you must
Nick Sayer [Fri, 24 Aug 2001 02:14:26 +0000 (02:14 +0000)]
In order for the MA301 to pass interrupts from the PCCard, you must
go into the PLX 9052's interrupt control register and turn on the magic
interrupt enable bit.

Partial thanks are due to OpenBSD for pointing out that the chip is a
PLX 9052 and pointing me to the datasheet PDF.

22 years agoo Clarify comments in vaccess_acl_posix1e() ACL evaluation routine so
Robert Watson [Fri, 24 Aug 2001 01:41:42 +0000 (01:41 +0000)]
o Clarify comments in vaccess_acl_posix1e() ACL evaluation routine so
  as to improve readability and accuracy.

Obtained from: TrustedBSD Project

22 years agoReflect that the lge(4) driver has been tested on the Alpha.
Bruce A. Mah [Fri, 24 Aug 2001 00:30:50 +0000 (00:30 +0000)]
Reflect that the lge(4) driver has been tested on the Alpha.

Reviewed by: wpaul

22 years agobegin executed --> being executed
Dima Dorfman [Fri, 24 Aug 2001 00:18:37 +0000 (00:18 +0000)]
begin executed --> being executed

Obtained from: NetBSD

22 years agoif_wi can be either pci (without pccard) or pccard
Nick Sayer [Thu, 23 Aug 2001 23:58:49 +0000 (23:58 +0000)]
if_wi can be either pci (without pccard) or pccard

22 years ago- callout_stop() now returns an integer value instead of void so
John Baldwin [Thu, 23 Aug 2001 23:52:59 +0000 (23:52 +0000)]
- callout_stop() now returns an integer value instead of void so
  describe it.
- Add a return values section.

22 years agoSpelling fix: depreciated -> deprecated.
John Baldwin [Thu, 23 Aug 2001 23:41:53 +0000 (23:41 +0000)]
Spelling fix: depreciated -> deprecated.

22 years agoRemove refernces to M_ASLEEP/asleep/await.
John Baldwin [Thu, 23 Aug 2001 23:40:53 +0000 (23:40 +0000)]
Remove refernces to M_ASLEEP/asleep/await.

22 years agoRemove references to asleep/await.
John Baldwin [Thu, 23 Aug 2001 23:37:31 +0000 (23:37 +0000)]
Remove references to asleep/await.

22 years agoUse witness_upgrade/downgrade for sx_try_upgrade/downgrade.
John Baldwin [Thu, 23 Aug 2001 22:51:22 +0000 (22:51 +0000)]
Use witness_upgrade/downgrade for sx_try_upgrade/downgrade.