Scott Long [Thu, 12 Jun 2003 16:53:55 +0000 (16:53 +0000)]
Add the -H option to ps(1) to display all kernel visible threads in each
process. The default behavior of showing only the process is retained as
the default.
Scott Long [Thu, 12 Jun 2003 16:41:50 +0000 (16:41 +0000)]
Add support to sysctl_kern_proc to return all threads in a proc, not just the
first one. The old behaviour can be switched by specifying KERN_PROC_PROC.
Submitted by: julian, tweaks and added functionality by myself
Ian Dowse [Thu, 12 Jun 2003 15:41:20 +0000 (15:41 +0000)]
When removing a sillyrename file, make sure that the directory vnode
has not been cleaned in the meantime, since this can happen during
a forced unmount. Also add a comment that nfs_removeit() should
really be locking the directory vnode before calling nfs_removerpc().
Thomas Moestl [Thu, 12 Jun 2003 15:00:34 +0000 (15:00 +0000)]
Remove the PSYCHO_STRAY option - it was never really useful. Adjust a
nearby comment. PSYCHO_DEBUG remains, as it is quite useful for
debugging interrupt routing problems.
Hartmut Brandt [Thu, 12 Jun 2003 14:28:32 +0000 (14:28 +0000)]
This is a driver for the physical layer chips used in ATM interfaces.
It currently supports the PMC Sierra Lite, Ultra and 622 chips and
the IDT 77105. The driver handles media options and state in a consistent
manner for ATM drivers. The next commit to the midway driver will make
it use utopia.
Hartmut Brandt [Thu, 12 Jun 2003 09:03:15 +0000 (09:03 +0000)]
Rename the section 'locking considerations' into 'context'.
Change the wording in this section to get rid of references to mutexes
and talk about sleeping instead.
Greg Lehey [Thu, 12 Jun 2003 05:34:42 +0000 (05:34 +0000)]
vinum_bounds_check: Don't check the label sector if the architecture
doesn't have one. The test was bogus on these architectures, but
recent changes broke it altogether.
Prompted by: phk
This should fix the recent SPARC 64 build problems.
Greg Lehey [Thu, 12 Jun 2003 05:32:00 +0000 (05:32 +0000)]
Remove write_volume_label, the implementation of VINUM_LABEL ioctl.
It has been deprecated since December 1998, and recent changes broke
it altogether.
Warner Losh [Thu, 12 Jun 2003 04:44:15 +0000 (04:44 +0000)]
If BURN_BRIDGES or _FreeBSD_version >= 6.0 and OBSOLETE_IN_6 is
defined, then #error out. This is protected inside of #ifdef _KERNEL.
This allows one to tag code in the tree that will be deleted in 6.x
with the 'OBSOLETE_IN_6 #define at the top of the file. This makes
for easy grepping, plus a mechanism that automatically fails the
compilation of those files that are so tagged after we do the cutover.
Warner Losh [Thu, 12 Jun 2003 04:19:10 +0000 (04:19 +0000)]
pc98 doesn't need COMPAT_OLDISA for any devices in the kernel.
However, GENERIC has wdc commented out, and COMPAT_OLDISA is required
for that. Comment out COMPAT_OLDISA and sdd a comment to this effect
near wdc.
Warner Losh [Thu, 12 Jun 2003 03:37:28 +0000 (03:37 +0000)]
Make cbb interrupts MPSAFE:
o Register ISR INTR_MPSAFE.
o Loop on KTHREAD_DONE == 0 in the thread.
o Safe the INTR_MPSAFE flag for client drivers (don't know if there are any
CardBus/PCI drivers that are INTR_MPSAFE)
o Read status after acquiring mtx_lock(Giant) rather than before so that we
catch state changes that happen while Giant is being acquired.
o Turn off the CD bit when we see a CD interrupt, and turn it back on after
we've attached/detached the card.
o On suspend, actually set the CBB_SOCKET_MASK to zero rather than oring
in '0' to turn it off on suspend.
o If the ISR that's registerd is MPSAFE, don't acquire Giant around call to
client ISR.
o Fix comments to reflect these changes.
Marcel Moolenaar [Thu, 12 Jun 2003 00:15:18 +0000 (00:15 +0000)]
Make sure pcpu->pc_pcb is pointing to a 16-byte aligned address. The
PCB contains FP registers, whose alignment must be 16 bytes at least.
Since the PCB pointed to by pc_pcb is immediately after the PCPU
itself, round-up the size of thge PCPU to a multiple of 16 bytes. The
PCPU is page aligned.
This fixes a misalignment trap caused by stopping a CPU in a SMP
kernel, such as been done when entering the debugger.
Reported by: Alan Robinson <alan.robinson@fujitsu-siemens.com>
Thomas Moestl [Wed, 11 Jun 2003 20:30:52 +0000 (20:30 +0000)]
Remove the psycho and sbus iommu function stubs, and put the pointer
to the iommu_state structure directly into dt_cookie. The stubs have
not been needed for a long time now.
Robert Watson [Wed, 11 Jun 2003 06:38:24 +0000 (06:38 +0000)]
Add "-n" argument, which causes mdconfig to simply print the unit
number X, rather than mdX, making it easier to script tests that
use md devices but don't want to make assumptions about any existing
md use (such as in diskless environments).
Paul Saab [Wed, 11 Jun 2003 05:18:59 +0000 (05:18 +0000)]
Don't overflow when calculating vm_kmem_size. This fixes kmem_map
too small panics on PAE machines which have odd > 4GB sizes (4.5 gig
would render a 20MB of KVA for kmem_map instead of 200MB).
Submitted by: John Cagle <john.cagle@hp.com>, jeff
Reviewed by: jeff, peter, scottl, lots of USENIX folks
Alan Cox [Tue, 10 Jun 2003 20:28:41 +0000 (20:28 +0000)]
- Finish vm object and page locking in vnode_pager_setsize().
- Make some small style changes to vnode_pager_setsize(); most notably,
move two comments to a more logical place.
Thomas Moestl [Tue, 10 Jun 2003 18:53:15 +0000 (18:53 +0000)]
- Add manpages for the gem and hme ethernet drivers. These were obtained
from NetBSD, and changed slightly to account for FreeBSD specifics.
- Hook them up to the build.
- Add them to the list of miibus-using drivers in miibus(4).