summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* fix corega vendor id(use vendor string and product string)sanpei2003-04-181-1/+2
| | | | Submitted by: imp
* Don't grab Giant in slab_zalloc() if M_NOWAIT is specified. Thisgallatin2003-04-181-4/+9
| | | | | | | should allow the use of INTR_MPSAFE network drivers. Tested by: njl Glanced at by: jeff
* KASSERT that NG_MKMESSAGE() is not called with mbuf flags.phk2003-04-181-0/+4
|
* - Set the ke_cpu field in sched_add() for interrupt and realtime threadsjeff2003-04-181-5/+7
| | | | | | | | | | since they are going on the current cpu and not their previously assigned cpu. - sched_runnable() should only return true in the SMP case if the other processor has more than one thread that is runnable. We can not steal curthread. - Change kseq_print() to accept the cpuid instead of a kseq pointer. This makes use of this function in ddb much easier.
* Sync with Creative's 8010.h rev 1.39.obrien2003-04-182-6/+6
|
* Remove reference to ata resource in print_child.grehan2003-04-181-1/+0
|
* Remove sparse address hack.grehan2003-04-181-2/+0
|
* Vastly simplify the macio ATA attachment, now that the register filegrehan2003-04-181-225/+42
| | | | indirection is handled in the ATA common code.
* Remove sparse addressing hack. The macio ATA driver no longer requiresgrehan2003-04-182-5/+0
| | | | this.
* - Convert NetBSD-derived macros to inline functions for bettergrehan2003-04-181-65/+176
| | | | | | type-checking and future debug code. - Remove sparse addressing hack, since the only consumer, the macio ATA driver, doesn't require it anymore.
* Add a thread_unlink() and use it.julian2003-04-183-22/+29
| | | | | It could also be used twice in kern_thr.c but that's owned by jeff so I'l let him change it when he's next there.
* suser() does not need the proc lock, just the setting of P_PROTECTED injhb2003-04-171-4/+5
| | | | p_flag needs the lock.
* - kthread's don't have p_textvp set to anything, so replace code thatjhb2003-04-171-7/+1
| | | | | dealt with that possibility with a KASSERT(). - No need to set P_SYSTEM, kthread_create() does that for us.
* - Use a local struct proc variable to improve readability.jhb2003-04-171-11/+11
| | | | | - Use a local variable to close a minor race when determining if the wmesg printed out needs a prefix such as when a thread is blocked on a lock.
* Tweak locking in the PS_XCPU handler to hold the sched_lock while readingjhb2003-04-171-4/+5
| | | | p_runtime.
* The sched_lock is not needed while clearing two of the P_STOPPED bits injhb2003-04-171-3/+2
| | | | | p_flag. Also, the proc lock can't be recursed, so simplify an older proc lock assertion.
* Don't assume that p_session hasn't changed out from under us after unlockingjhb2003-04-171-12/+11
| | | | | | the process and session. Instead, cache a true reference to the session when we do the hold and release our reference on that session. This avoids the need for the proc lock when dropping the reference.
* Lock the sched_lock while setting TDF_INPANIC.jhb2003-04-171-0/+2
|
* Use TD_IS_RUNNING() instead of thread_running() in the adaptive mutexjhb2003-04-172-14/+4
| | | | code.
* fork1() already sets PS_INMEM, so don't set it again. This lets us pushjhb2003-04-171-3/+2
| | | | sched_lock down slightly so that it isn't needed in the RFSTOPPED case.
* - The prison mutex cannot possibly protect pointers to the prison itjhb2003-04-171-3/+1
| | | | | | | protects, so don't bother locking it while we assign it to a ucred's cr_prison. - Fully construct the new credential for a process before assigning it to p_ucred.
* Add some locking in for a few proc and thread fields.jhb2003-04-172-2/+7
|
* - Push Giant down into the fork1() function a small bit.jhb2003-04-171-11/+10
| | | | | | - Set p_acflag earlier while already hold the proc lock in fork1(). - Mark the realitexpire() callout MPSAFE for new processes. It was already marked safe for proc0 a long while ago.
* Adjust a few comments.jhb2003-04-172-3/+3
|
* Protect td_sigmask with the proc lock.jhb2003-04-174-1/+11
|
* Test the P_WEXIT flag while already hold the proc lock instead of rightjhb2003-04-171-3/+2
| | | | after dropping it.
* Hold the proc lock across a wider range of fields that it protects.jhb2003-04-171-2/+2
|
* Add some missing proc mutex unlocks.jhb2003-04-171-2/+6
|
* Don't drop the proc lock just to reacquire it after a few simple assignmentjhb2003-04-171-2/+0
| | | | statements. Just hold the lock the entire time.
* Remove a couple of unused symbols.jhb2003-04-172-4/+0
|
* - Use a local variable to close a minor race when determining if the wmesgjhb2003-04-171-9/+15
| | | | | | printed out needs a prefix such as when a thread is blocked on a lock. - Use another local variable to close another race for the td_wmesg and td_wchan members of struct thread.
* Protect p_flag with the proc lock. The sched_lock is not needed to turnjhb2003-04-171-2/+2
| | | | off P_STOPPED_SIG in p_flag.
* - P_SHOULDSTOP just needs proc lock now, so don't acquire sched_lock unlessjhb2003-04-171-6/+4
| | | | | it is needed. - Add a proc lock assertion.
* Add a proc lock assertion and move another assertion up to the top of thejhb2003-04-171-2/+4
| | | | function.
* The proc lock is sufficient to test p_state against PRS_ZOMBIE, so don'tjhb2003-04-171-4/+0
| | | | needlessly lock sched_lock.
* Don't hold the proc lock while performing sigset conversions on localjhb2003-04-172-2/+2
| | | | variables.
* - Remove garbage SIGSETOR() that snuck into struct sigpending_argsjhb2003-04-171-2/+1
| | | | | | definition. - Use the proper constant for the last arg to kern_sigaction() in osigvec() instead of a magic value.
* Use local struct proc variables to reduce repeated td->td_proc dereferencesjhb2003-04-174-23/+30
| | | | and improve readability.
* Adjust a KTR trace to log thread state instead of proc state as that isjhb2003-04-171-1/+1
| | | | more relevant.
* P_SHOULDSTOP used to be p_stat == SSTOP and needed the sched_lock, now itjhb2003-04-171-3/+3
| | | | | is protected by the proc lock and doesnt' need sched_lock, so adjust the locking appropriately.
* Protect the per-process UAC field with the proc lock where it isn't alreadyjhb2003-04-172-1/+3
| | | | protected.
* Revise attach/detach resource cleanupnjl2003-04-1717-77/+240
| | | | | | | | | | | | | | | - Unconditionally call *_stop() if device is in the tree. This is to prevent callouts from happening after the device is gone. Checks for bus_child_present() should be added in the future to keep from touching potentially non-existent hardware in *_detach(). Found by iedowse@. - Always check for and free miibus children, even if the device is not in the tree since some failure cases could have gotten here. - Call ether_ifdetach() in the irq setup failure case - ti(4), xl(4): move ifmedia_init() calls to the beginning of attach so that ifmedia_removeall() can be unconditionally called on detach. There is no way to detect whether ifmedia has been initialized without using a separate variable (as tl(4) does). - Add comments to indicate assumptions of code path
* Get wlread() closer to working. Use m->m_len as the initial value forjhay2003-04-171-1/+9
| | | | | | bytes_in_mbuf rather than MCLBYTES. Add the ethertnet header to the front of the mbuf. Adjust bytes_in_mbuf inside the loop that reads the packet out of the card.
* Add locking to wlinit().jhay2003-04-171-0/+2
|
* Add some tunable descriptions.trhodes2003-04-171-2/+2
| | | | | Submitted by: hmp Discussed with: bde
* Put the spl calls back until we are sure that everything that they coverjhay2003-04-171-3/+14
| | | | are locked.
* Pre-content whitespace commit.trhodes2003-04-171-4/+4
| | | | Discussed with: bde
* Unbreak vinum, iostat and systat on sparc64 by changing the devstatharti2003-04-171-3/+3
| | | | | | | generation number back to a long (sizeof(u_int) != sizeof(long) on sparc64). The alternative would have been to heavily change the libdevstat API. Discussed with: phk, ken
* Perform warm or cold reset AC97 per the spec depending on state of theorion2003-04-172-22/+49
| | | | | | codec during initialization. This code mirrors the reset code used on the VIA82c686 and fixes a codec initialization failure (SoundMAX AD1885) reported by Matthias Schuendehuette.
* Bump __FreeBSD_version for new NSS implementation; addition ofnectar2003-04-171-1/+1
| | | | getpw*_r, getgr*_r interfaces.
OpenPOWER on IntegriCloud