]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoNow that free_pv_entry() accesses the pmap, call free_pv_entry() in
alc [Mon, 17 Jul 2006 03:10:17 +0000 (03:10 +0000)]
Now that free_pv_entry() accesses the pmap, call free_pv_entry() in
pmap_remove_all() before rather than after the pmap is unlocked.  At
present, the page queues lock provides sufficient sychronization.  In the
future, the page queues lock may not always be held when free_pv_entry() is
called.

17 years agoAdd regression tests of the emulation of the long branch conditional form.
marcel [Mon, 17 Jul 2006 00:27:12 +0000 (00:27 +0000)]
Add regression tests of the emulation of the long branch conditional form.
These tests can obviously only be run on Merced processors, as they don't
implement the long branch.

17 years agoChange comment on soabort() to more accurately describe how/when
rwatson [Sun, 16 Jul 2006 23:09:39 +0000 (23:09 +0000)]
Change comment on soabort() to more accurately describe how/when
soabort() is used.  Remove trailing white space.

17 years agoRemove sysctl_vm_zone() and vm.zone sysctl from 7.x. As of 6.x,
rwatson [Sun, 16 Jul 2006 22:53:26 +0000 (22:53 +0000)]
Remove sysctl_vm_zone() and vm.zone sysctl from 7.x.  As of 6.x,
libmemstat(3) is used by vmstat (and friends) to produce more accurate
and more detailed statistics information in a machine-readable way,
and vmstat continues to provide the same text-based front-end.

This change should not be MFC'd.

17 years agocorrect ie length check; need to include fixed part of ie
sam [Sun, 16 Jul 2006 21:19:28 +0000 (21:19 +0000)]
correct ie length check; need to include fixed part of ie

MFC after: 2 weeks

17 years agoMFamd64
alc [Sun, 16 Jul 2006 21:05:58 +0000 (21:05 +0000)]
MFamd64
 Make three simplifications to pmap_ts_referenced():
   Eliminate an initialized but otherwise unused variable.
   Eliminate an unnecessary test.
   Exit the loop in a shorter way.

17 years agoGeneral cleanup, not quite finished yet.
brueffer [Sun, 16 Jul 2006 20:43:12 +0000 (20:43 +0000)]
General cleanup, not quite finished yet.

17 years agoSome rearrangement of headers to minimize diffs with outside of
mjacob [Sun, 16 Jul 2006 20:11:50 +0000 (20:11 +0000)]
Some rearrangement of headers to minimize diffs with outside of
FreeBSD repository and to clean up the license header so as to
not pollute the license with file function.

Zero all mailbox structures prior to use (just in case). Change
the outgoing mailbox count for INIT_FIRMWARE to be correct.

17 years agoFix a compile time problem on amd64. I'm not sure if the fix is correct
netchild [Sun, 16 Jul 2006 20:10:08 +0000 (20:10 +0000)]
Fix a compile time problem on amd64. I'm not sure if the fix is correct
from a semantic point of view, but I notified the author of the driver
for confirmation. So far it at least fixes the build and should only
lead to not identifying or wrongly identifying a soundcard in the worst
case.

17 years agoEliminate the remaining uses of "register".
alc [Sun, 16 Jul 2006 19:43:49 +0000 (19:43 +0000)]
Eliminate the remaining uses of "register".

Convert the remaining K&R-style function declarations to ANSI-style.

Eliminate excessive white space from pmap_ts_referenced().

17 years agopower save mode state changes should not require clocking the 802.11
sam [Sun, 16 Jul 2006 19:10:41 +0000 (19:10 +0000)]
power save mode state changes should not require clocking the 802.11
state machine; use the reset method instead

MFC after: 2 weeks

18 years agotighten invariant on loops used to parse ie's; this ensures we never
sam [Sun, 16 Jul 2006 16:02:17 +0000 (16:02 +0000)]
tighten invariant on loops used to parse ie's; this ensures we never
touch data outside the packet (previously we might touch 1 byte); it
also has the happy side effect of working around broken orinoco/agere
firmware that sends malformed association response frames

Help by: Vladimir Egorin

18 years agoAdd sysctl information about things like WWNN/WWPN.
mjacob [Sun, 16 Jul 2006 06:05:44 +0000 (06:05 +0000)]
Add sysctl information about things like WWNN/WWPN.

MFC after: 2 weeks

18 years agoIf we're in mpt_wait_req and the command times out,
mjacob [Sun, 16 Jul 2006 03:34:55 +0000 (03:34 +0000)]
If we're in mpt_wait_req and the command times out,
mark it as timed out. Don't try and free the config
request for read_cfg_header that times out because
it's still active. Put in code for the config reply
handler that will then free up timed out requests.

Fix the FC_PRIMITIVE_SEND completion to not try
and free a command twice. Dunno how this possibly
could have been working for awhile.

MFC after: 2 weeks

18 years agoDefine out unused and incomplete raid quiesce functions.
mjacob [Sun, 16 Jul 2006 03:31:01 +0000 (03:31 +0000)]
Define out unused and incomplete raid quiesce functions.
The code never could be called, so we might as well not
compile it for now.

18 years agoOops bring back code that shouldn't have been removed by the previous
cognet [Sat, 15 Jul 2006 23:15:31 +0000 (23:15 +0000)]
Oops bring back code that shouldn't have been removed by the previous
commit.

18 years agoMake sure that if uma_small_alloc() gets called recursively, we just give up
cognet [Sat, 15 Jul 2006 23:01:54 +0000 (23:01 +0000)]
Make sure that if uma_small_alloc() gets called recursively, we just give up
and call kmem_malloc(), to avoid a deadlock.

18 years agoIf the card has target mode enabled, and we hang
mjacob [Sat, 15 Jul 2006 22:58:09 +0000 (22:58 +0000)]
If the card has target mode enabled, and we hang
out ELS buffers but *don't* hang out commands,
we hang folks on the SAN because the LSI-Logic
f/w apparently sends back BUSY or QFULL or some
darn thing.

If we add command buffers, we have to respond to
them sensibly even if we don't have any upstream
listeners (scsi_targ or scsi_targ_bh), so put in
some local command reponse stuff.

MFC after: 2 weeks

18 years agoNote the convention that humanize_number follows.
imp [Sat, 15 Jul 2006 20:53:36 +0000 (20:53 +0000)]
Note the convention that humanize_number follows.
Add 'engineering' numbers to table.

18 years agoWhen creating the NanoBSD disk image, install boot blocks from the
thomas [Sat, 15 Jul 2006 20:41:38 +0000 (20:41 +0000)]
When creating the NanoBSD disk image, install boot blocks from the
newly-built world, in preference to those from the host system.

Reviewed by: phk

18 years agoAdd a man-page for snd_emu10kx. Someone with man-fu should have a look
netchild [Sat, 15 Jul 2006 20:31:26 +0000 (20:31 +0000)]
Add a man-page for snd_emu10kx. Someone with man-fu should have a look
and improve it.

Submitted by: Yuriy Tsibizov <Yuriy.Tsibizov@gfk.ru> (minor mods by me)

18 years ago- Connect the snd_emu10kx driver to the build. [1]
netchild [Sat, 15 Jul 2006 20:22:40 +0000 (20:22 +0000)]
- Connect the snd_emu10kx driver to the build. [1]
- Bump __FreeBSD_version, no need to build the port now.

Submitted by: Yuriy Tsibizov <Yuriy.Tsibizov@gfk.ru> [1]

18 years agoMake the mixer kobj class static. This brings it inline with the channel or
netchild [Sat, 15 Jul 2006 20:11:16 +0000 (20:11 +0000)]
Make the mixer kobj class static. This brings it inline with the channel or
ac97 classes.

Tested with: es137x based sound hardware

18 years agoMake the MIDI kobj class static. This brings it inline with the channel or
netchild [Sat, 15 Jul 2006 20:08:32 +0000 (20:08 +0000)]
Make the MIDI kobj class static. This brings it inline with the channel or
ac97 classes.

This allows to link emu10k1 and emu10kx into the same kernel (LINT).

18 years agoAdd snd_emu10kx driver for Creative SoundBlaster Live! and Audigy series
netchild [Sat, 15 Jul 2006 19:36:28 +0000 (19:36 +0000)]
Add snd_emu10kx driver for Creative SoundBlaster Live! and Audigy series
sound cards with optional pseudo-multichannel playback.

It's based on snd_emu10k1 sound driver. Single channel version is available
from audio/emu10kx port since some time.

The two new ALSA header files (GPLed), which contain Audigy 2 ("p16v") and
Audigy 2 Value ("p17v") specific interfaces, are latest versions from ALSA
Mercurial repository.

This is not connected to the build yet.

Submitted by: Yuriy Tsibizov <Yuriy.Tsibizov@gfk.ru>

18 years ago- Update ALSA emu10k1.h (it was imported as emu10k1-alsa.h) header file to
netchild [Sat, 15 Jul 2006 19:19:54 +0000 (19:19 +0000)]
- Update ALSA emu10k1.h (it was imported as emu10k1-alsa.h) header file to
  latest version from Mercurial repository. It brings definition of some
  additional Audigy 2 / Audigy 2 Value registers.
- Use new #defines from ALSA emu10k1.h
- Remove unused include files:
  + emu10k1-ac97.h was imported from ALSA and never used,
  + emu10k1.h was imported from Creative Linux emu10k1 driver, but only
    AUDIGY_CODEBASE was used from it.

Submitted by: Yuriy Tsibizov <Yuriy.Tsibizov@gfk.ru>

18 years agoEliminate duplicate p-states entries
bruno [Sat, 15 Jul 2006 17:34:03 +0000 (17:34 +0000)]
Eliminate duplicate p-states entries

Reported and tested by: ales dot rom at kabelnet dot net
Reviewed by: njl
Approved by: njl, imp (mentor)
MFC after: 3 days

18 years agoAdd FreeBSD version information to the menu title so it's possible to
simon [Sat, 15 Jul 2006 12:23:56 +0000 (12:23 +0000)]
Add FreeBSD version information to the menu title so it's possible to
see which release you are installing (really which FreeBSD version the
installer is running, but that shouldn't matter in all normal cases).

PR: bin/100309
Submitted by: Joao Barros <joao.barros@gmail.com> (original version)
Idea from: FreeBSD ideas page
MFC after: 1 week

18 years agoMake pc_freemask an array of uint32_t, rather than uint64_t. (I believe
alc [Sat, 15 Jul 2006 07:24:30 +0000 (07:24 +0000)]
Make pc_freemask an array of uint32_t, rather than uint64_t.  (I believe
that the use of the latter is simply an oversight in porting the new pv
entry code from amd64.)

18 years agoEnable debug.mpsafevfs by default on arm. Since every architecture except
alc [Sat, 15 Jul 2006 06:44:27 +0000 (06:44 +0000)]
Enable debug.mpsafevfs by default on arm.  Since every architecture except
powerpc has debug.mpsafevfs enabled by default, it is shorter to enumerate
the architectures on which debug.mpsafevfs is off.

Tested by: cognet@

18 years agoUse TAILQ_FOREACH instead of poking around in the guts of the list
brooks [Sat, 15 Jul 2006 02:49:35 +0000 (02:49 +0000)]
Use TAILQ_FOREACH instead of poking around in the guts of the list
macros.

18 years agoDrop a pointless cast of ifp->if_softc to (struct tap_softc *).
brooks [Sat, 15 Jul 2006 02:13:05 +0000 (02:13 +0000)]
Drop a pointless cast of ifp->if_softc to (struct tap_softc *).

18 years agoCleanup: Use if_initname to set if_dname, if_dunit, and if_xname instead
brooks [Sat, 15 Jul 2006 02:07:38 +0000 (02:07 +0000)]
Cleanup: Use if_initname to set if_dname, if_dunit, and if_xname instead
of doing it by hand.

18 years agoAdd a comment explaining why the OHCI mapping has been commented out.
cognet [Sat, 15 Jul 2006 00:09:53 +0000 (00:09 +0000)]
Add a comment explaining why the OHCI mapping has been commented out.

18 years agoNot having ipv6 in your kernel is not an error and should not be reported.
julian [Fri, 14 Jul 2006 23:32:43 +0000 (23:32 +0000)]
Not having ipv6 in your kernel is not an error and should not be reported.
MFC after: 1 week

18 years agoAllow iic bridges to support a generalized transfer, rather than
imp [Fri, 14 Jul 2006 23:15:06 +0000 (23:15 +0000)]
Allow iic bridges to support a generalized transfer, rather than
forcing all transfers to do the start read/write stop by hand.  Some
smart bridges prefer this sort of operation, and this allows us to
support their features more easily.  When bridges don't support it, we
fall back to using the old-style opertaions.  Expand the ioctl
interface to expose this function.  Unlike the old-style interface,
this interface is thread safe, even on old bridges.

18 years agoMFp4: spibus glue
imp [Fri, 14 Jul 2006 22:50:46 +0000 (22:50 +0000)]
MFp4: spibus glue

18 years agoMFp4:
imp [Fri, 14 Jul 2006 22:47:07 +0000 (22:47 +0000)]
MFp4:
Initial spibus support.  Seems to be OK, but needs some polish.

# someone should write a bit-bang spi parallel port interface :-)

18 years agoMFp4: this now depends on new spi bus stuff
imp [Fri, 14 Jul 2006 22:41:54 +0000 (22:41 +0000)]
MFp4: this now depends on new spi bus stuff

18 years agoMFp4: tweaks
imp [Fri, 14 Jul 2006 22:40:24 +0000 (22:40 +0000)]
MFp4: tweaks

18 years agoLet native elf class be registered earlier.
jkim [Fri, 14 Jul 2006 22:39:18 +0000 (22:39 +0000)]
Let native elf class be registered earlier.

18 years agoMFp4: elevate quality of slow clock a little
imp [Fri, 14 Jul 2006 22:31:12 +0000 (22:31 +0000)]
MFp4: elevate quality of slow clock a little

18 years agoMFp4: paren police
imp [Fri, 14 Jul 2006 22:30:44 +0000 (22:30 +0000)]
MFp4: paren police

18 years agoMFp4:
imp [Fri, 14 Jul 2006 22:22:57 +0000 (22:22 +0000)]
MFp4:
Introduce framework to configure the multiplexed pins on boot.

Since the USART supprots RS-485 multidrop mode, it allows the
TX pins to float.  However, for RS-232 operations, we don't
want these pins to float.  Instead, they should be pulled up
to avoid mismatches.  Linux does something similar when it
configures the TX lines.  This implies that we also allow the
RX lines to float rather than be in the state they are left in
by the boot loader.  Since they are input pins, I think that
this is the right thing to do.

Plus minor for our board.

18 years agoMFp4:
imp [Fri, 14 Jul 2006 22:06:01 +0000 (22:06 +0000)]
MFp4:
Fix typo in RTC_CALR_MK.

18 years agoThe TSC board uses a 16MHz base clock for the AT91RM9200, while the Kwikbyte
imp [Fri, 14 Jul 2006 22:01:51 +0000 (22:01 +0000)]
The TSC board uses a 16MHz base clock for the AT91RM9200, while the Kwikbyte
board uses a 10MHz base clock.  Cope with this difference.

18 years agoFor the moment, make board configuration a compile time option. This
imp [Fri, 14 Jul 2006 21:59:54 +0000 (21:59 +0000)]
For the moment, make board configuration a compile time option.  This
saves space in the final kernel, but at the expense of flexibility to
boot the same kernel accross a family of boards.

18 years agoImplement the set_time function. Rather pointless with this RTC, as it
imp [Fri, 14 Jul 2006 21:37:19 +0000 (21:37 +0000)]
Implement the set_time function.  Rather pointless with this RTC, as it
resets when the core resets, but there may be some use for it...

18 years agoMF p4:
imp [Fri, 14 Jul 2006 21:35:59 +0000 (21:35 +0000)]
MF p4:

Adapt to forthcoming spi framework.  The ioctls for SPI commands and such
belong in the higher level driver.

18 years agoBe sure to flush the cache after a partial read on timeout. Expand
imp [Fri, 14 Jul 2006 21:33:04 +0000 (21:33 +0000)]
Be sure to flush the cache after a partial read on timeout.  Expand
comments about timeouts.  Fix a style nit.  Sometimes small messages
were getting corrupted.

18 years agoRemove duplicated #include.
pjd [Fri, 14 Jul 2006 17:55:36 +0000 (17:55 +0000)]
Remove duplicated #include.

18 years agoo compat_group() and files_group() are more complicated than I thought
maxim [Fri, 14 Jul 2006 17:45:33 +0000 (17:45 +0000)]
o compat_group() and files_group() are more complicated than I thought
in rev. 1.34.  Mainly I missed the fact that the buffer is used for two
purposes:

1) storing a group line from the group file;

2) __gr_parse_entry() parses the buffer and tries to put the group
members to the remaining part of the buffer and can fail if there
is no enough room for them.

Re-arrange the buffer size checks to account the latter case.

Submitted by: Kirk R Webb
MFC after: 2 weeks

18 years agoRegen.
jhb [Fri, 14 Jul 2006 15:42:47 +0000 (15:42 +0000)]
Regen.

18 years agoSomewhat surprisingly, ibcs2_ioctl() is MPSAFE as it is without needing any
jhb [Fri, 14 Jul 2006 15:42:21 +0000 (15:42 +0000)]
Somewhat surprisingly, ibcs2_ioctl() is MPSAFE as it is without needing any
further fixes.

18 years agoRegen.
jhb [Fri, 14 Jul 2006 15:31:01 +0000 (15:31 +0000)]
Regen.

18 years agoMark ibcs2_mount() (just returns EINVAL) and ibcs2_umount() (just calls
jhb [Fri, 14 Jul 2006 15:30:50 +0000 (15:30 +0000)]
Mark ibcs2_mount() (just returns EINVAL) and ibcs2_umount() (just calls
unmount(2)) MPSAFE.

18 years agoMove some of the common parameters into the std. files for this platform.
imp [Fri, 14 Jul 2006 15:20:31 +0000 (15:20 +0000)]
Move some of the common parameters into the std. files for this platform.
Also migrate from MD disk to NFS boot.

18 years agoRegen.
jhb [Fri, 14 Jul 2006 15:11:46 +0000 (15:11 +0000)]
Regen.

18 years agoibcs2_sigprocmask() is already marked MPSAFE in syscalls.xenix, so mark
jhb [Fri, 14 Jul 2006 15:11:20 +0000 (15:11 +0000)]
ibcs2_sigprocmask() is already marked MPSAFE in syscalls.xenix, so mark
it MPSAFE in syscalls.isc.

18 years agoDrop Giant before returning in error path, thus eliminates
delphij [Fri, 14 Jul 2006 13:58:32 +0000 (13:58 +0000)]
Drop Giant before returning in error path, thus eliminates
two mutex leaks.

Submitted by: Beyond Luo <fedora ercist iscas ac cn>
PR: kern/100046
Reviewed by: ken, scottl

18 years agoUnlock aac_io_lock before returning, thus eliminates a mutex
delphij [Fri, 14 Jul 2006 13:55:56 +0000 (13:55 +0000)]
Unlock aac_io_lock before returning, thus eliminates a mutex
leak.

Submitted by: Beyond Luo <fedora ercist iscas ac cn>
PR: kern/100046
Reviewed by: scottl

18 years agoRemove prototype for the undefined function counterhandler().
cognet [Fri, 14 Jul 2006 13:37:47 +0000 (13:37 +0000)]
Remove prototype for the undefined function counterhandler().

Submitted by: kevlo

18 years agoDefine prototype for pru_close, which in the future will notify the
rwatson [Fri, 14 Jul 2006 09:44:28 +0000 (09:44 +0000)]
Define prototype for pru_close, which in the future will notify the
protocol of a socket close event distinct from a detach event, which
will (in a future commit) become aligned with pru_abort, which will
also be a notification of close prior to detach.  Add prurequests event
for close, as well as patch up some existing missing ones.

18 years agoReduce the memory requirements for the tables by (1) using malloced strings
harti [Fri, 14 Jul 2006 09:07:56 +0000 (09:07 +0000)]
Reduce the memory requirements for the tables by (1) using malloced strings
instead of maximum sized arrays embedded in the table structures and (2)
using pointers to constant oids instead of copying the oid into each
table structure. This also fixes indexing in the case when a string used
for indexing is longer than the maximum size allowed in the MIB.

Submitted by: Victor Cruceru <soc-victor@>

18 years agoDon't attach 2422's yet. It just confuses everyone.
mjacob [Fri, 14 Jul 2006 05:16:00 +0000 (05:16 +0000)]
Don't attach 2422's yet. It just confuses everyone.

18 years agoAdd some missing braces.
mjacob [Fri, 14 Jul 2006 05:14:48 +0000 (05:14 +0000)]
Add some missing braces.

Add MEMORY_BARRIER for the few scratch dma ops that were missing
them plus add a couple of hi 32 bit dma ops (we could probably
allow 64 bit scratch and request/response queue dma now).

18 years agoFix a few cis entries that were separated with spaces, not with commas.
imp [Fri, 14 Jul 2006 04:39:29 +0000 (04:39 +0000)]
Fix a few cis entries that were separated with spaces, not with commas.
This caused drivers for the cards they matched to not probe.

18 years agono need to print unload anymore
imp [Fri, 14 Jul 2006 04:36:57 +0000 (04:36 +0000)]
no need to print unload anymore

18 years agono need to print unload anymore.
imp [Fri, 14 Jul 2006 04:35:59 +0000 (04:35 +0000)]
no need to print unload anymore.

18 years agosync with master.
davidxu [Fri, 14 Jul 2006 01:57:09 +0000 (01:57 +0000)]
sync with master.

18 years agoAdd remote GDB bits for arm.
cognet [Fri, 14 Jul 2006 00:50:51 +0000 (00:50 +0000)]
Add remote GDB bits for arm.

18 years agoCaching scheduling policy and priority in userland, a critical but baddly
davidxu [Thu, 13 Jul 2006 22:45:19 +0000 (22:45 +0000)]
Caching scheduling policy and priority in userland, a critical but baddly
written application is frequently changing thread priority for SCHED_OTHER
policy.

18 years agoAlways allow to specify components with /dev/ prefix.
pjd [Thu, 13 Jul 2006 20:37:59 +0000 (20:37 +0000)]
Always allow to specify components with /dev/ prefix.

MFC after: 3 days

18 years agoSync specialreg.h changes between amd64 and i386 with few fixes.
jkim [Thu, 13 Jul 2006 16:09:40 +0000 (16:09 +0000)]
Sync specialreg.h changes between amd64 and i386 with few fixes.

18 years agoCreate the diskless magic files in /etc during the install_etc() step
phk [Thu, 13 Jul 2006 14:06:09 +0000 (14:06 +0000)]
Create the diskless magic files in /etc during the install_etc() step
instead of setup_nanobsd(), because this gives customize tasks a chance
to fiddle the details.

Inspired & tested by: Jordan Coleman <jordan@JordanColeman.com>

18 years agoNow even more style(9)ish.
mr [Thu, 13 Jul 2006 11:47:36 +0000 (11:47 +0000)]
Now even more style(9)ish.

Submitted by: pjd

18 years agoUse the already stored VIA RNG probe information
mr [Thu, 13 Jul 2006 09:15:14 +0000 (09:15 +0000)]
Use the already stored VIA RNG probe information
instead of probing again.
Adjust style(9) somewhat in probe.c

Reviewed by: pjd
MFC after: 1 week

18 years agoBackout the feature which can change thread's scheduling option, I really
davidxu [Thu, 13 Jul 2006 06:41:26 +0000 (06:41 +0000)]
Backout the feature which can change thread's scheduling option, I really
don't want to mix process and thread scheduling options together in these
functions, now the thread scheduling option is implemented in new thr
syscalls.

18 years agoUse thr_setscheduler, thr_getscheduler and thr_setschedparam to implement
davidxu [Thu, 13 Jul 2006 06:35:43 +0000 (06:35 +0000)]
Use thr_setscheduler, thr_getscheduler and thr_setschedparam to implement
pthread functions.

18 years agoregenerate.
davidxu [Thu, 13 Jul 2006 06:32:55 +0000 (06:32 +0000)]
regenerate.

18 years agoAdd syscalls thr_setscheduler, thr_getscheduler, and thr_setschedparam,
davidxu [Thu, 13 Jul 2006 06:26:43 +0000 (06:26 +0000)]
Add syscalls thr_setscheduler, thr_getscheduler, and thr_setschedparam,
these syscalls are designed to set thread's scheduling parameters and
policy, because each syscall contains a size parameter, it is possible
to support future scheduling option, e.g SCHED_SPORADIC, this option
needs other fields in structure sched_param, current they are not
avaiblable.

18 years agoFix ifconfig up when the HW was down. If the driver isn't running
ambrisko [Wed, 12 Jul 2006 23:13:09 +0000 (23:13 +0000)]
Fix ifconfig up when the HW was down.  If the driver isn't running
then we need to call init otherwise just start the rx.

Interestingly dhclient seemed to work but ifconfig <IP> didn't
for me.

Reviewed by: jhb

18 years agoHonor db_pager_quit in 'show threadchain', 'show allchains', and
jhb [Wed, 12 Jul 2006 21:25:24 +0000 (21:25 +0000)]
Honor db_pager_quit in 'show threadchain', 'show allchains', and
'show lockchain'.  This is especially helpful for the first 2 as a
threadchain could get stuck in an infinite loop during a mutex deadlock.

18 years agoSimplify the pager support in DDB. Allowing different db commands to
jhb [Wed, 12 Jul 2006 21:22:44 +0000 (21:22 +0000)]
Simplify the pager support in DDB.  Allowing different db commands to
install custom pager functions didn't actually happen in practice (they
all just used the simple pager and passed in a local quit pointer).  So,
just hardcode the simple pager as the only pager and make it set a global
db_pager_quit flag that db commands can check when the user hits 'q' (or a
suitable variant) at the pager prompt.  Also, now that it's easy to do so,
enable paging by default for all ddb commands.  Any command that wishes to
honor the quit flag can do so by checking db_pager_quit.  Note that the
pager can also be effectively disabled by setting $lines to 0.

Other fixes:
- 'show idt' on i386 and pc98 now actually checks the quit flag and
  terminates early.
- 'show intr' now actually checks the quit flag and terminates early.

18 years agoUse the already stored VIA RNG probe information
mr [Wed, 12 Jul 2006 20:29:11 +0000 (20:29 +0000)]
Use the already stored VIA RNG probe information
instead of probing again.

MFC after: 1 week

18 years agoAdd vnode interlocking to devfs.
ups [Wed, 12 Jul 2006 20:25:35 +0000 (20:25 +0000)]
Add vnode interlocking to devfs.
This prevents race conditions that can cause pagefaults or devfs
to use arbitrary vnodes.

MFC after: 1 week

18 years agoInitialise (if necessary) the VIA C3/C7 features.
mr [Wed, 12 Jul 2006 19:46:08 +0000 (19:46 +0000)]
Initialise (if necessary) the VIA C3/C7 features.
Store the capabilities for further use by random(4), padlock(4), ...

Obtained from: mostly OpenBSD
MFC after: 1 week

18 years agoo Sort sx(9) MLINKS.
maxim [Wed, 12 Jul 2006 19:12:16 +0000 (19:12 +0000)]
o Sort sx(9) MLINKS.

18 years agoWhen securelevel is >= 1, /dev/io may not be opened at all (not just for
keramida [Wed, 12 Jul 2006 18:12:11 +0000 (18:12 +0000)]
When securelevel is >= 1, /dev/io may not be opened at all (not just for
write).  Update the securelevel description to match this.

Reported by: Alexandros Kosiaris <akosiaris@gmail.com>
MFC after: 3 days

18 years agofix typo in identcpu.c and add one define to specialreg.h.
mr [Wed, 12 Jul 2006 16:52:56 +0000 (16:52 +0000)]
fix typo in identcpu.c and add one define to specialreg.h.

MFC after: 1 week

18 years agoTeach mount(8) about a 'late' keyword, which means the file system should
des [Wed, 12 Jul 2006 16:05:51 +0000 (16:05 +0000)]
Teach mount(8) about a 'late' keyword, which means the file system should
not be mounted unless the -l flag was specified.

Add an rc script, mountlate, which basically runs 'mount -a -l'.  It runs
after DAEMON but before LOGIN.

This is useful for things like loopback mounts, because mountcritremote
runs before mountd  / nfsd (since /usr might be a remote file system), so
an attempt to mount a loopback network file system in mountcritremote will
fail.

Also add a progress message to mountcritlocal, for the sake of symmetry
with similar messages in mountcritremote and mountlate.

Reviewed by: freebsd-rc
MFC after: 3 weeks

18 years agoCorrect path to the firmware ports.
brueffer [Wed, 12 Jul 2006 15:55:48 +0000 (15:55 +0000)]
Correct path to the firmware ports.

18 years agoOnly check if we're freeing a valid object if we hold the topology lock.
pjd [Wed, 12 Jul 2006 15:44:00 +0000 (15:44 +0000)]
Only check if we're freeing a valid object if we hold the topology lock.
This prevents panic under heavy load with DIAGNOSTIC compiled in.

18 years agoDocument sx_xlocked(9).
pjd [Wed, 12 Jul 2006 15:40:35 +0000 (15:40 +0000)]
Document sx_xlocked(9).

Submitted by: ssouhlal

18 years agoforgot to add MFC, since its used on -stable and compile-tested on -current.
mr [Wed, 12 Jul 2006 14:59:07 +0000 (14:59 +0000)]
forgot to add MFC, since its used on -stable and compile-tested on -current.

MFC after: 1 week

18 years agoFirst step to identify and initialize the newer VIA C7 CPU
mr [Wed, 12 Jul 2006 14:52:32 +0000 (14:52 +0000)]
First step to identify and initialize the newer VIA C7 CPU
as found in a VIA EPIA EN-15000 board.

Obtained from: large parts from OpenBSD

18 years agoo Add missed comma, xref kld(4).
maxim [Wed, 12 Jul 2006 14:33:52 +0000 (14:33 +0000)]
o Add missed comma, xref kld(4).

18 years agoo Fix some printf(3) format nits in my patch I submitted to kib@.
maxim [Wed, 12 Jul 2006 13:36:08 +0000 (13:36 +0000)]
o Fix some printf(3) format nits in my patch I submitted to kib@.

Submitted by: ru

18 years agoRemove slipped in spaces.
kib [Wed, 12 Jul 2006 12:42:47 +0000 (12:42 +0000)]
Remove slipped in spaces.

Pointed out by: maxim
Approved by: pjd (mentor)

18 years agoCheck that the signal number is in range.
kib [Wed, 12 Jul 2006 12:41:56 +0000 (12:41 +0000)]
Check that the signal number is in range.

Submitted by: maxim
MFC after: 1 week
Approved by: pjd (mentor)