summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Put back the deletion of TEMPROOT/etc/passwd.dougb2003-03-051-1/+1
| | | | Noticed by: maxim
* Add a minimal implementation of VOP_PATHCONF to silence warningtjr2003-03-052-2/+58
| | | | messages from ls(1).
* Handle the case where a_uio->uio_td == NULL properly in coda_readlink().tjr2003-03-052-2/+4
| | | | This happens when called from lookup().
* Better handle the recent (desirable) change to create login.conf.db atdougb2003-03-051-4/+4
| | | | install time, and make sure to catch any future .db files as well.
* Raise the default value of TTYHOG from 1 kB to 8 kB. Since TTYHOG isdas2003-03-051-1/+1
| | | | | | | | | | | an administrative limit on the size of tty/pty input buffers, this is mostly an inconsequential change. (slti(4) will allocate an 8 kB static buffer instead of a 1 kB buffer due to a hack in the driver.) The increase happens to kludge around a lame limitation of syscons, which does not allow one to paste more than TTYHOG bytes. PR: 42031 Reviewed by: mike (mentor)
* Make TTYHOG tunable.das2003-03-0512-2/+22
| | | | Reviewed by: mike (mentor)
* Attempt a hard reset if AC97 codec is not ready on attach.orion2003-03-052-20/+27
| | | | | | Halt attach if mixer_init fails. Prompted by: points raised by Hugo Valentim <hvalentim@gmx.net>.
* Fix threaded applications on ia64 that are linked dynamicly. We didmarcel2003-03-053-4/+8
| | | | | | | | | | | | | | | | | not save (restore) the global pointer (GP) in the jmpbuf in setjmp (longjmp) because it's not needed in general. GP is considered a scratch register at callsites and hence is always restored after a call (when it's possible that the call resolves to a symbol in a different loadmodule; otherwise GP does not have to be saved and restored at all), including calls to setjmp/longjmp. There's just one problem with this now that we use setjmp/longjmp for context switching: A new context must have GP defined properly for the thread's entry point. This means that we need to put GP in the jmpbuf and consequently that we have to restore is in longjmp. This automaticly requires us to save it as well. When setjmp/longjmp isn't used for context switching, this can be reverted again.
* Don't cast an int to a pointer type without (possibly) widening themarcel2003-03-051-1/+1
| | | | | | | | | | | integral type to the size of a pointer type when it's known that the cast is valid. On ia64 such casts are generally bad news and has led us (=peter :-) to make such casts fatal. By casting to intptr_t before casting to a pointer type, this now compiles cleanly in LP64 architectures. Note that the final cast has been changed to void* (instead of siginfo_t*) to make it explicit that we're not trying to pass a siginfo_t pointer but rather trying to pass an int when the prototype says it should be a pointer.
* ABI breaker: Move the J_SIGMASK field in the jmpbuf beforemarcel2003-03-052-5/+4
| | | | | | | | | | | the J_SIG0 field. While here, rename J_SIG0 to J_SIGSET and remove J_SIG1. The main reason for this change is that the 128-bit sigset_t is now aligned on a 16-byte boundary, which allows us to use 16-byte atomic loads and stores on CPUs that support it. The removal of J_SIG1 is done to avoid confusion: it is never accessed and should not be. Renaming J_SIG0 to J_SIGSET is the icing on the cake that's better done now than later.
* Update those versions of firmware that support ibss modeimp2003-03-051-1/+5
|
* Set ldesc after dbch->ndesc has initialized.simokawa2003-03-051-3/+2
|
* Re-document unimplemented capabilities that were removed in the lastdas2003-03-051-0/+57
| | | | | | | | revision of this file, but note that they are not supported in the base system. Requested by: ache Reviewed by: ache, mike (mentor)
* Document the tunable kern.ipc.nsfbufs in help.common and loader.8. Smallseanc2003-03-042-4/+11
| | | | | | | nearby grammar fixup that saves a line of display while in the loader (help set tunables), but reuses the line for kern.ipc.nsfbufs. Approved by: roam
* GC unused files.jlemon2003-03-042-149/+0
|
* Update netisr handling; Each SWI now registers its queue, and all queuejlemon2003-03-0464-745/+667
| | | | | | | | | | drain routines are done by swi_net, which allows for better queue control at some future point. Packets may also be directly dispatched to a netisr instead of queued, this may be of interest at some installations, but currently defaults to off. Reviewed by: hsu, silby, jayanth, sam Sponsored by: DARPA, NAI Labs
* Bah, fix a bogon in the last commit: get the sense of a compare test rightjhb2003-03-041-1/+1
| | | | | so that we allow a sleepable lock to be acquired with Giant held rather than allowing a sleepable lock to be acquired with anything but Giant held.
* - Hold the buf lock while manipulating and inspecting its fields.jeff2003-03-041-56/+70
| | | | | | | | | | | | | | | | - Use gbincore() and not incore() so that we can drop the vnode interlock as we acquire the buflock. - Use GB_LOCK_NOWAIT when getting bufs for read ahead clusters so that we don't block on locked bufs. - Convert a while loop to a howmany() that will most likely be faster on modern processors. There is another while loop divide that was left near by because it is operating on a 64bit int and is most likely faster. - Cleanup the cluster_read() code a little to get rid of a goto and make the logic clearer. Tested on: x86, alpha Tested by: Steve Kargl <sgk@troutmask.apl.washington.edu> Reviewd by: arch
* Remove safety belt: it is now ok to do a mtx_trylock() on a mutex youjhb2003-03-042-10/+8
| | | | | | | already own. The mtx_trylock() will fail however. Enhance the comment at the top of the try lock function to explain this. Requested by: jlemon and his evil netisr locking
* Don't complain about an early end-of-file in the -r case rather thanfanf2003-03-041-1/+1
| | | | the opposite. Does this pointy hat look good on me?
* Replace calls to WITNESS_SLEEP() and witness_list() with equivalent callsjhb2003-03-0424-91/+65
| | | | to WITNESS_WARN().
* Add a WITNESS_WARN() call to verify that we hold no locks after runningjhb2003-03-041-0/+1
| | | | a handler from an interrupt thread.
* A small overhaul of witness:jhb2003-03-042-63/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a comment about special lock order rules and Giant near the top of subr_witness.c. Specifically, this documents and explains the real lock order relationship between Giant and sleepable locks (i.e. lockmgr locks and sx locks). Basically, Giant can be safely acquired either before or after sleepable locks and the case of Giant before a sleepable lock is exempted as a special case. - Add a new static function 'witness_list_lock()' that displays a single line of information about a struct lock_instance. This is used to make the output of witness messages more consistent and reduce some code duplication. - Fixup a few comments in witness_lock(). - Properly handle the Giant-before-sleepable-lock lock order exception in a more general fashion and remove the no longer needed LI_SLEPT flag. - Break up the last condition before assuming a reversal a bit to try and make the logic less confusing in witness_lock(). - Axe WITNESS_SLEEP() now that LI_SLEPT is no longer needed and replace it with a more general WITNESS_WARN() macro/function combination. WITNESS_WARN() allows you to output a customized message out to the console along with a list of held locks. It will optionally drop into the debugger as well. You can exempt a single lock from the check by passing it in as the second argument. You can also use flags to specify if Giant should be exempt from the check, if all sleepable locks should be exempt from the check, and if witness should panic if any non-exempt locks are found. - Make the witness_list() function static. Other areas of the kernel should use the new WITNESS_WARN() instead.
* Miscellaneous cleanups to _mtx_lock_sleep():jhb2003-03-042-8/+12
| | | | | | | | - Declare some local variables at the top of the function instead of in a nested block. - Use mtx_owned() instead of masking off bits from mtx_lock manually. - Read the value of mtx_lock into 'v' as a separate line rather than inside an if statement for clarity. This code is hairy enough as it is.
* Properly assert that mtx_trylock() is not called on a mutex we alreadyjhb2003-03-042-16/+8
| | | | | | | owned. Previously the KASSERT would only trigger if we successfully acquired a lock that we already held. However, _obtain_lock() fails to acquire locks that we already hold, so the KASSERT was never checked in the case it was supposed to fail.
* Wrap the hyperthreading support code with the HTT kernel option.jhb2003-03-048-0/+128
| | | | | | Hyperthreading support is now off unless the HTT option is added. MFC-after: 3 days
* Fix bug introduced in 1.130. For the < MHLEN case, we shouldbmilekic2003-03-041-1/+1
| | | | | | | be doing a m_gethdr(), not an m_get(). Pointed out by: Hiten Pandya <hiten@unixdaemons.com> Pointy hat to: Me
* Fix a bug in the white-space remover.phk2003-03-041-1/+1
|
* Add cvsroot-all to the examplepeter2003-03-041-0/+13
|
* Doh, committed to the wrong branch.ru2003-03-041-1/+2
| | | | Spotted by: johan
* Start whining to stderr when people use obsolete flags. These flagsimp2003-03-041-0/+12
| | | | will be removed. Give terse pointer to ifconfig h0h0 magic to use.
* another obsolete flagimp2003-03-041-0/+6
|
* Correct mistake in T flag: weptxkey is the replacementimp2003-03-041-1/+1
|
* Document the obsolete flags as obsolete, with pointers to theirimp2003-03-041-16/+97
| | | | | | | | ifconfig equivalents. This is the first step in removing them from the system. Users of wicontrol to configure the wireless card are strongly encouraged to change their scripts, as sometime in the future all configuration of the cards that isn't in ifconfig will be removed with extreme prejustice.
* Bump __FreeBSD_version to mark new cdevsw initialization.phk2003-03-041-1/+1
|
* Initialize the second buffer for mirroring to point to itself and not itsphk2003-03-042-0/+2
| | | | partner.
* MFC: Ship with /etc/login.conf hashed.ru2003-03-041-2/+1
| | | | Approved by: re
* Regen:sheldonh2003-03-041-56/+154
| | | | * Boemler: vendors.txt (2003-02-13)
* Fix printf warning on RELENG_4.simokawa2003-03-041-0/+4
|
* - Create a function sched_interact_score() which decides on thejeff2003-03-041-70/+86
| | | | | | | | | interactivity of a kseg and assigns it a value of 0 through 100. - Use sched_interact_score() to determine the dynamic priority. - Define SCHED_CURR() in terms of sched_interact_score(). - Adjust the maximum slice back down to 100ms. - Remove redundant clearing of ke_runq in sched_wakeup() - Clean up #defines and comment them.
* - Add a new 'flags' parameter to getblk().jeff2003-03-0425-60/+73
| | | | | | | | | | - Define one flag GB_LOCK_NOWAIT that tells getblk() to pass the LK_NOWAIT flag to the initial BUF_LOCK(). This will eventually be used in cases were we want to use a buffer only if it is not currently in use. - Convert all consumers of the getblk() api to use this extra parameter. Reviwed by: arch Not objected to by: mckusick
* - Correct the wchan in vop_stdfsync()jeff2003-03-031-1/+1
| | | | | This is almost what bde asked for. There is some desire to have per fs wchans still but that is difficult giving the current arrangement of the code.
* If we carry our MODULES_WITH_WORLD, we probably also do not wantru2003-03-031-0/+4
| | | | | for installkernel to wipe them out later. So install them under /boot/modules if that is the case.
* FreeBSD 5.0 has stopped shipping /modules 2.5 years ago. Catchru2003-03-034-4/+4
| | | | | up with this further by excluding /modules from the (default) kern.module_path.
* exists() is too aggressive when searching for files without a full path.ru2003-03-031-1/+1
| | | | Inspired by: bsd.prog.mk,v 1.105
* 3rd party modules live in /boot/modules nowadays.ru2003-03-031-1/+1
|
* Correct the path to the modules directory.ru2003-03-032-3/+3
|
* Add an xref to kldconfig(8).ru2003-03-031-0/+1
|
* /modules is gone long ago, use the safe equivalents.ru2003-03-032-3/+3
|
* MFlibc_r: add and document pthread_attr_get_np() function.phantom2003-03-036-0/+232
|
OpenPOWER on IntegriCloud