summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* GRR. MFi386: white space spampeter2004-01-301-49/+49
|
* Merge some more changes from i386.peter2004-01-304-10/+46
|
* Consistently capitalize acronyms like POSIX and NIC. Style.schweikh2004-01-291-52/+52
|
* Fix typos and remove whitespace at EOL.schweikh2004-01-291-20/+20
|
* Cleanups/cosmetics.sos2004-01-293-9/+8
|
* Fix pathname so 'make tags' in a kernel build directory looks inkensmith2004-01-291-1/+1
| | | | | | the right place for the $MACHINE/include directory. Approved by: rwatson (mentor)
* Add dependency to snd_via8233mr2004-01-291-0/+1
|
* Fixed breakage of scheduling in rev.1.29 of subr_4bsd.c. Thebde2004-01-291-1/+1
| | | | | | | | | | | | | | | | | "scheduler" here has very little to do with scheduling. It is actually the swapper, and it really must be the last SYSINIT'ed item like its comment says, since proc0 metamorphoses into swapper by calling scheduler() last in mi_start(), and scheduler() never returns.. Rev.1.29 of subr_4bsd.c broke this by adding another SI_ORDER_FIRST item (kproc_start() for schedcpu_thread() onto the SI_SUB_RUN_SCHEDULER_LIST. The sorting of SYSINITs with identical orders (at all levels) is apparently nondeterministic, so this resulted in schedule() sometimes being called second last and schedcpu_thread() not being called at all. This quick fix just changes the code to almost match the comment (SI_ORDER_FIRST -> SI_ORDER_ANY). "LAST" is misspelled "ANY", and there is no way to ensure that there is only 1 very lst SYSINIT. A more complete fix would remove the SYSINIT obfuscation.
* Fix a bug where we never managed to include the sense data we wanted to send.mjacob2004-01-291-2/+2
|
* Go back to using AUTHMODE_AUTO if WEP is on. In some cases, the Centrinowpaul2004-01-291-1/+3
| | | | | | won't associate in BSS mode if you use AUTHMODE_SHARED. I probably don't understand enough to know when SHARED should be used vs. OPEN or WPA. For now, go back to what works.
* Fix longstanding buglet- for centrally handled CTIO2s we were checking the wrongmjacob2004-01-291-2/+3
| | | | | | | bit for this being the last CTIO2. It didn't matter since it really was the last CTIO2 and the resources recycled, but still.... Add in CTIO3 define for future DAC work.
* Assert process lock in ptracestop(), since we're going to relyrwatson2004-01-291-0/+1
| | | | on it, and later unlock it.
* When UMA_MD_SMALL_ALLOC is defined, pmap_kextract will be calledgrehan2004-01-293-0/+30
| | | | | | | | for direct-mapped addresses. Assume that any address less than KVA is one of these and return it. Also assert that an address is KVA does have a valid mapping - callers of pmap_kextract don't check the return value, since they assume that they have a valid virtual address.
* Implement UMA_MD_SMALL_ALLOC, since the BAT registers allow directgrehan2004-01-294-0/+171
| | | | | | | addressing of memory. Makes a substantial improvement for apps that stress the limited amount of KVM on PPC (e.g. untarring the ports tree). uma_machdep.c stolen from amd64/ia64.
* Re-add debug register support.peter2004-01-291-19/+218
| | | | | Some other minor tweaks snuck in here, including supporting more discontiguous memory segments and some cosmetic tweaks.
* Re-add user_dbreg_trap() for debug register supportpeter2004-01-292-0/+20
|
* Take another shot at the invariants calls to __panic. They hadn't beenpeter2004-01-291-17/+73
| | | | | | | | updated for the regparm ABI on amd64. Context switch debug regs. Update for fpu simplification Don't needlessly reload %cr3, in case the cpu has the tlb flush filter turned off. Re-add LAZY_SWITCH stubs.
* deal with dbregs for fork etcpeter2004-01-281-17/+25
| | | | | update for fpu.c simplification Merge #include sort from i386
* Un-stub the hardware debug register stuff.peter2004-01-281-33/+3
|
* Export PCB_DR* symbolspeter2004-01-281-5/+7
|
* We can simplify a lot of things now that we don't have to worry aboutpeter2004-01-282-43/+9
| | | | hardware bugs on external 386 cpus and now that we can depend on SSE.
* Add dbreg struct definitions for /proc/*/dbregs and a place to store thepeter2004-01-282-3/+23
| | | | registers in the pcb
* Re-add debug register functionspeter2004-01-281-2/+129
|
* MFi386: mp_topology().peter2004-01-283-1/+46
|
* MFi386: add THERMTRIP msr valuespeter2004-01-281-0/+3
|
* Diff reduction with i386peter2004-01-281-4/+12
|
* Regenpeter2004-01-285-7/+40
|
* Add getitimer swab stubpeter2004-01-281-2/+2
|
* Add a reset sysctl for mutex profiling: zeros all of the mutexrwatson2004-01-281-0/+27
| | | | | | | | profiling buffers and hash table. This makes it a lot easier to do multiple profiling runs without rebooting or performing gratuitous arithmetic. Sysctl is named debug.mutex.prof.reset. Reviewed by: jake
* Fix for those lost interrupts on probe on lots of controller types.sos2004-01-281-6/+6
| | | | Note to self, just because an idea is good, it doesn't apply everywhere.
* MFi386: change an outb to a DELAY()peter2004-01-281-1/+1
|
* Move the loadav() callout into its own kthread since it uses allproc_lockjhb2004-01-281-12/+31
| | | | | which is a sleepable lock and thus is not safe to acquire from a callout routine.
* Optimize the i386 interrupt entry code to not reload the segment registersjhb2004-01-282-40/+34
| | | | | | | if they already contain the correct kernel selectors. Reviewed by: peter Suggested by: peter
* Rework witness_lock() to make it slightly more useful and flexible.jhb2004-01-284-108/+214
| | | | | | | | | | | | | | | | | | | | | | | | | | | - witness_lock() is split into two pieces: witness_checkorder() and witness_lock(). Witness_checkorder() determines if acquiring a specified lock at the time it is called would result in a lock order. It optionally adds a new lock order relationship as well. witness_lock() updates witness's data structures to assume that a lock has been acquired by stick a new lock instance in the appropriate lock instance list. - The mutex and sx lock functions now call checkorder() prior to trying to acquire a lock and continue to call witness_lock() after the acquire is completed. This will let witness catch a deadlock before it happens rather than trying to do so after the threads have deadlocked (i.e. never actually report it). - A new function witness_defineorder() has been added that adds a lock order between two locks at runtime without having to acquire the locks. If the lock order cannot be added it will return an error. This function is available to programmers via the WITNESS_DEFINEORDER() macro which accepts either two mutexes or two sx locks as its arguments. - A few simple wrapper macros were added to allow developers to call witness_checkorder() anywhere as a way of enforcing locking assertions in code that might acquire a certain lock in some situations. The macros are: witness_check_{mutex,shared_sx,exclusive_sx} and take an appropriate lock as the sole argument. - The code to remove a lock instance from a lock list in witness_unlock() was unnested by using a goto to vastly improve the readability of this function.
* Use the biotask functionality in GEOM to put finished requests onsos2004-01-287-32/+36
| | | | | | | instead of taskqueue_swi. This shaves from 1 to 10% of the overhead. Overhaul the locking once more, there was a few possible races that are now closed.
* Use mtx_assert() rather than using a home-rolled version.jhb2004-01-282-2/+2
|
* protect access to ifnet structure with mutex.ume2004-01-281-0/+2
|
* Bring back the geom_bioqueues, they _are_ a good idea.phk2004-01-282-1/+30
| | | | ATA will uses these RSN.
* Change KASSERT() in feed_vchan16() into an explicit test and call totruckman2004-01-288-140/+245
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | panic() so that the buffer overflow just beyond this point is always caught, even when the code is not compiled with INVARIANTS. Change chn_setblocksize() buffer reallocation code to attempt to avoid the feed_vchan16() buffer overflow by attempting to always keep the bufsoft buffer at least as large as the bufhard buffer. Print a diagnositic message Danger! %s bufsoft size increasing from %d to %d after CHANNEL_SETBLOCKSIZE() if our best attempts fail. If feed_vchan16() were to be called by the interrupt handler while locks are dropped in chn_setblocksize() to increase the size bufsoft to match the size of bufhard, the panic() code in feed_vchan16() will be triggered. If the diagnostic message is printed, it is a warning that a panic is possible if the system were to see events in an "unlucky" order. Change the locking code to avoid the need for MTX_RECURSIVE mutexes. Add the MTX_DUPOK option to the channel mutexes and change the locking sequence to always lock the parent channel before its children to avoid the possibility of deadlock. Actually implement locking assertions for the channel mutexes and fix the problems found by the resulting assertion violations. Clean up the locking code in dsp_ioctl(). Allocate the channel buffers using the malloc() M_WAITOK option instead of M_NOWAIT so that buffer allocation won't fail. Drop locks across the malloc() calls. Add/modify KASSERTS() in attempt to detect problems early. Abuse layering by adding a pointer to the snd_dbuf structure that points back to the pcm_channel that owns it. This allows sndbuf_resize() to do proper locking without having to change the its API, which is used by the hardware drivers. Don't dereference a NULL pointer when setting hw.snd.maxautovchans if a hardware driver is not loaded. Noticed by Ryan Sommers <ryans at gamersimpact.com>. Tested by: Stefan Ehmann <shoesoft AT gmx.net> Tested by: matk (Mathew Kanner) Tested by: Gordon Bergling <gbergling AT 0xfce3.net>
* Add an ACPI_FUNCTION_TRACE() to the newly-added acpi_Startup() routineroam2004-01-281-0/+2
| | | | | | | to get the ACPI_DEBUG case (and LINT in particular) to build. Reviewed by: jhb, njl Approved by: jhb
* If not in the debugger or if the user requests it with thenjl2004-01-281-1/+27
| | | | | | | | | debug.ddb_use_printf sysctl, output kernel debugger data to both the console and kernel message buffer via printf. This fixes the case where backtrace() went directly to the console and should help debugging greatly. Thanks to Ian Dowse for the work, minor edits or any bugs are by myself. Submitted by: iedowse
* Remove process lock XXX's, fixed in src/sys/sys/proc.h:1.366.rwatson2004-01-281-8/+0
|
* Move the part of the comment which applies to osigsuspend wherekan2004-01-281-2/+5
| | | | | | | it belongs. The current sigsuspend syscall does expect a pointer to the mask as argument. Submitted by: Igor Sysoev <is at rambler-co dot ru>
* Always build ext2fs module. There is no written policy preventing theobrien2004-01-281-4/+0
| | | | building of GPL'ed modules.
* MFi386: revision 1.33nyan2004-01-282-2/+2
| | | | PR: kern/62005
* Enable ndis for AMD64 (for the time that modules are supported)...obrien2004-01-281-0/+4
|
* Add NO_BLUETOOTH knob to the build processemax2004-01-281-0/+2
| | | | | Requested by: phk Reviewed by: imp (mentor), ru
* Correct the descriptions of the net.inet.{udp,raw}.recvspace sysctls.ru2004-01-272-2/+2
|
* Sync with Oxford Dictionary. Style (add missing full stops) while I'm here.schweikh2004-01-271-5/+5
|
* Correct the description of the net.graph.recvspace sysctl.ru2004-01-271-1/+1
|
OpenPOWER on IntegriCloud