summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* hw.pcic.ignore_pciimp2002-06-131-1/+9
| | | | | Set this to 1 to ignore cardbus bridges and work entirely in legacy ISA mode. This may help some folks.
* - Finish the uni part of the storage pool cleanup. There should now onlyarr2002-06-1318-200/+195
| | | | | | | | | | be a few bits left to clean from the HARP code in terms of what is using the storage pools; once that's done, the memory management code can be removed entirely. This commit effectively changes the use of dynamic memory routines from atm_allocate, atm_free, atm_release_pool to uma_zcreate, uma_zalloc, uma_zfree, uma_zdestroy.
* Use a cv rather than tsleep and friends to do the sleep/wakeupimp2002-06-132-7/+15
| | | | | | | | handshake between the ISR and the worker thread. Move the mutex lock so that it only protects the cv_wait. This elimiates the not sleeping with pccbb1 held messages some people were seeing. Reviewed by: jhb (at least an early version)
* Remote pci.h/NPCI usage from i4b code.brooks2002-06-1324-69/+48
| | | | Approved by: hm
* Add PCI bus enumeration and latency timer setup to the sparc64 MD PCItmm2002-06-124-88/+203
| | | | | | | | code. Both tasks are not always performed completely by the firmware. The former is required to get some e450 models to boot; the latter fixes the repeated fifo underruns with hme(4)s and gem(4)s observed on some machines (and probably performance problems with other peripherals as well).
* The UDP head was unlocked too early in one unicast case.hsu2002-06-121-10/+10
| | | | Submitted by: bug reported by arr
* - Add sanity check for argument.iwasaki2002-06-121-2/+7
| | | | | - Add new entry to stripdirs. The `generate' directory appeared in acpica-unix-20020517.
* If trap() is called when ddb is active, then go directly to trap_fatal();bde2002-06-122-4/+18
| | | | | | | | | | | do not blunder around enabling interrupts and running trap handlers. trap_pfault() will normally pass control to ddb's fault handler which will normally do the right thing. This bug is very old. but in old versions of FreeBSD it is probably only serious for trap handling that involves sleeping. In -current, attempting to examine unmapped memory while stopped at a breakpoint at mi_switch() was always fatal.
* o Acquire and release Giant in vm_map_unlock_and_wait().alc2002-06-121-3/+5
| | | | Submitted by: tegge
* As a stop-gap measure, add one INP_LOCK_DESTROY() to in6_pcbdetach() tohsu2002-06-121-0/+1
| | | | get kernel compiled with INET6 to boot.
* Fix logic which resulted in missing a call to INP_UNLOCK().hsu2002-06-122-10/+4
|
* Fix typo where INP_INFO_RLOCK should be INP_INFO_RUNLOCK.hsu2002-06-121-4/+2
| | | | | | | Submitted by: tegge, jlemon Prefer LIST_FOREACH macro. Submitted by: jlemon
* Make nselcol, the number of select collisions since boot, unsigned askbyanc2002-06-122-7/+7
| | | | | | | negative collisions simply doesn't make sense. PR: (one small part of) 19720 Approved by: alfred
* This actually compiles under lint now, by effectively #if 0'ing italfred2002-06-111-5/+0
| | | | | when compiling LINT, linking LINT was broke, so unbreak by removing the preprocessor directives.
* catch up with ktrace changes, KTRPOINT takes a 'struct thread' notalfred2002-06-111-2/+2
| | | | 'struct proc' now.
* Time counter stats are unsigned, advertise them to sysctl(8) that way.kbyanc2002-06-111-1/+1
| | | | | PR: (one small part of) 19720 Approved by: phk
* o Properly handle a failure by vm_fault_wire() or vm_fault_user_wire()alc2002-06-111-4/+20
| | | | | | | in vm_map_wire(). o Make two white-space changes in vm_map_wire(). Reviewed by: tegge
* SO_PRIVSTATE has been commented out for long enough now....wollman2002-06-111-1/+0
|
* Remember to initialize the control block head mutex.hsu2002-06-112-0/+2
|
* Fix typo.hsu2002-06-111-2/+2
| | | | Submitted by: Kyunghwan Kim <redjade@atropos.snu.ac.kr>
* #include <sys/disklabel.h> to get BBSIZE.phk2002-06-111-0/+1
|
* Make the alpha architecture use the common ufsread().phk2002-06-113-279/+44
| | | | Submitted by: ticso
* o Teach vm_map_delete() to respect the "in-transition" flagalc2002-06-111-0/+31
| | | | | | on a vm_map_entry by sleeping until the flag is cleared. Submitted by: tegge
* Every array elt is initialized in the following loop, so removehsu2002-06-101-1/+1
| | | | unnecessary M_ZERO.
* Convert hit and miss counters to unsigned values. Surely negative valueskbyanc2002-06-102-6/+6
| | | | | | for either does not make sense. PR: (one small part of) 19720
* Lock up inpcb.hsu2002-06-1015-119/+668
| | | | Submitted by: Jennifer Yang <yangjihui@yahoo.com>
* - Whitespace only: use return statement consistentlt (return (foo), notsobomax2002-06-101-8/+6
| | | | | return(foo)), kill extra blank names between function names; - fix format string in printf(): devtoname() returns string, not pointer.
* Put geom_gpt.c under the GEOM option instead of having a special GEOM_GPTphk2002-06-104-7/+3
| | | | option for it.
* o In vm_map_entry_create(), call uma_zalloc() with M_NOWAIT on system maps.alc2002-06-101-5/+6
| | | | | | | Submitted by: tegge o Eliminate the "!mapentzone" check from vm_map_entry_create() and vm_map_entry_dispose(). Reviewed by: tegge o Fix white-space usage in vm_map_entry_create().
* Correct the logic for determining whether the per-CPU locks neediedowse2002-06-101-1/+1
| | | | | | | to be destroyed. This fixes a problem where destroying a UMA zone would fail to destroy all zone mutexes. Reviewed by: jeff
* o Add vm_map_wire() for wiring contiguous regions of either kernelalc2002-06-091-1/+159
| | | | | | | | | | | or user vm_maps. This implementation has two key benefits when compared to vm_map_{user_,}pageable(): (1) it avoids a race condition through the use of "in-transition" vm_map entries and (2) it eliminates lock recursion on the vm_map. Note: there is still an error case that requires clean up. Reviewed by: tegge
* Fix driver to re-enable sound output on AD1816 based cards caused by anhm2002-06-091-0/+4
| | | | | | | | obviously bogous return value of ad1816chan_setformat(). PR: 37932 Submitted by: Martin Kaeske <Martin.Kaeske@Stud.TU-Ilmenau.DE> Reviewed by: hm MFC after: 10 days
* Improve some on the naming.phk2002-06-0912-53/+55
| | | | Submitted by: iedowse
* if you have taken the mbuf out of the message object, then if you passjulian2002-06-091-1/+3
| | | | the object to someone else, you need to put the mbuf back into it first..
* Fix bug which has been there since rev 1.1 where && was used instead of &.hsu2002-06-091-1/+1
|
* Renamed the idempotency identifier to match the file name. Cleaned upbde2002-06-091-15/+14
| | | | indentation and comments.
* Fix a '<<' that should have been a '>>' in the 48bit case.sos2002-06-081-1/+1
| | | | | Fortunately we only have had 32bit block counts until recently, and no 2TB disks :)
* o Simplify vm_map_unwire() by merging the second and third passesalc2002-06-081-17/+11
| | | | over the caller-specified region.
* Add code to drop to ddb when a process gets a fatal signal that usuallyjake2002-06-081-0/+8
| | | | | suggests kernel bugs (4, 10, 11). Add a sysctl debug.debugger_on_signal which turns this on and off, default off.
* o Remove an unnecessary call to vm_map_wakeup() from vm_map_unwire().alc2002-06-082-6/+17
| | | | | | | | o Add a stub for vm_map_wire(). Note: the description of the previous commit had an error. The in- transition flag actually blocks the deallocation of a vm_map_entry by vm_map_delete() and vm_map_simplify_entry().
* Re-enable SMP by default.jake2002-06-081-1/+1
|
* Remove test code.jake2002-06-084-33/+0
|
* Remove code from trap which is handled in userland now.jake2002-06-084-29/+5
|
* Fix bizarre SMP problems. The secondary cpus sometimes start up with junkjake2002-06-085-1/+51
| | | | | | in their tlb which the prom doesn't clear out, so we have to do so manually before mapping the kernel page table or the cpu can hang due various conditions which cause undefined behaviour from the tlb.
* If we boot verbose, then print out 'interesting' CAM errors that otherwisemjacob2002-06-071-5/+65
| | | | would hide problems (like Selection Timeout).
* o Add vm_map_unwire() for unwiring contiguous regions of either kernelalc2002-06-072-1/+167
| | | | | | | | | | | | | | | or user vm_maps. In accordance with the standards for munlock(2), and in contrast to vm_map_user_pageable(), this implementation does not allow holes in the specified region. This implementation uses the "in transition" flag described below. o Introduce a new flag, "in transition," to the vm_map_entry. Eventually, vm_map_delete() and vm_map_simplify_entry() will respect this flag by deallocating in-transition vm_map_entrys, allowing the vm_map lock to be safely released in vm_map_unwire() and (the forthcoming) vm_map_wire(). o Modify vm_map_simplify_entry() to respect the in-transition flag. In collaboration with: tegge
* Comment out options SMP for now until I figure out what's going on.jake2002-06-071-1/+1
|
* 0 is not an invalid interrupt in the PCI world (just in the ia32imp2002-06-071-2/+4
| | | | | | world), do not treat it as such. This fixes the alpha boot problem. Reviewed by: drew, des
* Renamed the idempotency identifier to match the file name.bde2002-06-071-3/+3
|
* According to Bruce, this file shouldn't have comments to describe whatjhb2002-06-071-1/+1
| | | | | | | | options do. Comments should be in NOTES and having the comments in two places usually means that one place will just bitrot. Thus, remove the comment for KTRACE_REQUEST_POOL from the previous revision. Requested by: bde
OpenPOWER on IntegriCloud