grog [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.
grog [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.
imp [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.
imp [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.
imp [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 [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>
tmm [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.
rwatson [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).
ps [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
alc [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.
tmm [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).
yar [Tue, 10 Jun 2003 15:38:35 +0000 (15:38 +0000)]
Coding style fix: Use "foo = 1" instead of "foo++" to assign
the truth value to a boolean variable, especially when inside
a loop. The variable can overflow otherwise, at least in theory.
yar [Tue, 10 Jun 2003 14:46:43 +0000 (14:46 +0000)]
General mdoc(7) markup fixes:
- Use .Va, not .Em, to mark up variable-like identifiers
(capability and database entry names.)
- Stop abusing .Tn (trademark) to emphasize general phrases.
- Spot unmarked capability references.
- Add a missing line break.
yar [Tue, 10 Jun 2003 14:20:38 +0000 (14:20 +0000)]
Improve the language and markup of the description of the pp and pl
capabilities:
- Mark up capability identifiers.
- Don't squeeze much text into the capability table given the options
will be described below in detail.
- Keep the capability table sorted.
- Use a consistent term for a PPP login program.
davidxu [Tue, 10 Jun 2003 02:21:32 +0000 (02:21 +0000)]
If there are signals delivered to current thread, breaks out of loop,
userret() will be called again by ast() and thread_userret() will be
called again by userret().