Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix corega vendor id(use vendor string and product string) | sanpei | 2003-04-18 | 1 | -1/+2 |
| | | | | Submitted by: imp | ||||
* | Don't grab Giant in slab_zalloc() if M_NOWAIT is specified. This | gallatin | 2003-04-18 | 1 | -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. | phk | 2003-04-18 | 1 | -0/+4 |
| | |||||
* | - Set the ke_cpu field in sched_add() for interrupt and realtime threads | jeff | 2003-04-18 | 1 | -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. | obrien | 2003-04-18 | 2 | -6/+6 |
| | |||||
* | Remove reference to ata resource in print_child. | grehan | 2003-04-18 | 1 | -1/+0 |
| | |||||
* | Remove sparse address hack. | grehan | 2003-04-18 | 1 | -2/+0 |
| | |||||
* | Vastly simplify the macio ATA attachment, now that the register file | grehan | 2003-04-18 | 1 | -225/+42 |
| | | | | indirection is handled in the ATA common code. | ||||
* | Remove sparse addressing hack. The macio ATA driver no longer requires | grehan | 2003-04-18 | 2 | -5/+0 |
| | | | | this. | ||||
* | - Convert NetBSD-derived macros to inline functions for better | grehan | 2003-04-18 | 1 | -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. | julian | 2003-04-18 | 3 | -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 in | jhb | 2003-04-17 | 1 | -4/+5 |
| | | | | p_flag needs the lock. | ||||
* | - kthread's don't have p_textvp set to anything, so replace code that | jhb | 2003-04-17 | 1 | -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. | jhb | 2003-04-17 | 1 | -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 reading | jhb | 2003-04-17 | 1 | -4/+5 |
| | | | | p_runtime. | ||||
* | The sched_lock is not needed while clearing two of the P_STOPPED bits in | jhb | 2003-04-17 | 1 | -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 unlocking | jhb | 2003-04-17 | 1 | -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. | jhb | 2003-04-17 | 1 | -0/+2 |
| | |||||
* | Use TD_IS_RUNNING() instead of thread_running() in the adaptive mutex | jhb | 2003-04-17 | 2 | -14/+4 |
| | | | | code. | ||||
* | fork1() already sets PS_INMEM, so don't set it again. This lets us push | jhb | 2003-04-17 | 1 | -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 it | jhb | 2003-04-17 | 1 | -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. | jhb | 2003-04-17 | 2 | -2/+7 |
| | |||||
* | - Push Giant down into the fork1() function a small bit. | jhb | 2003-04-17 | 1 | -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. | jhb | 2003-04-17 | 2 | -3/+3 |
| | |||||
* | Protect td_sigmask with the proc lock. | jhb | 2003-04-17 | 4 | -1/+11 |
| | |||||
* | Test the P_WEXIT flag while already hold the proc lock instead of right | jhb | 2003-04-17 | 1 | -3/+2 |
| | | | | after dropping it. | ||||
* | Hold the proc lock across a wider range of fields that it protects. | jhb | 2003-04-17 | 1 | -2/+2 |
| | |||||
* | Add some missing proc mutex unlocks. | jhb | 2003-04-17 | 1 | -2/+6 |
| | |||||
* | Don't drop the proc lock just to reacquire it after a few simple assignment | jhb | 2003-04-17 | 1 | -2/+0 |
| | | | | statements. Just hold the lock the entire time. | ||||
* | Remove a couple of unused symbols. | jhb | 2003-04-17 | 2 | -4/+0 |
| | |||||
* | - Use a local variable to close a minor race when determining if the wmesg | jhb | 2003-04-17 | 1 | -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 turn | jhb | 2003-04-17 | 1 | -2/+2 |
| | | | | off P_STOPPED_SIG in p_flag. | ||||
* | - P_SHOULDSTOP just needs proc lock now, so don't acquire sched_lock unless | jhb | 2003-04-17 | 1 | -6/+4 |
| | | | | | it is needed. - Add a proc lock assertion. | ||||
* | Add a proc lock assertion and move another assertion up to the top of the | jhb | 2003-04-17 | 1 | -2/+4 |
| | | | | function. | ||||
* | The proc lock is sufficient to test p_state against PRS_ZOMBIE, so don't | jhb | 2003-04-17 | 1 | -4/+0 |
| | | | | needlessly lock sched_lock. | ||||
* | Don't hold the proc lock while performing sigset conversions on local | jhb | 2003-04-17 | 2 | -2/+2 |
| | | | | variables. | ||||
* | - Remove garbage SIGSETOR() that snuck into struct sigpending_args | jhb | 2003-04-17 | 1 | -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 dereferences | jhb | 2003-04-17 | 4 | -23/+30 |
| | | | | and improve readability. | ||||
* | Adjust a KTR trace to log thread state instead of proc state as that is | jhb | 2003-04-17 | 1 | -1/+1 |
| | | | | more relevant. | ||||
* | P_SHOULDSTOP used to be p_stat == SSTOP and needed the sched_lock, now it | jhb | 2003-04-17 | 1 | -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 already | jhb | 2003-04-17 | 2 | -1/+3 |
| | | | | protected. | ||||
* | Revise attach/detach resource cleanup | njl | 2003-04-17 | 17 | -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 for | jhay | 2003-04-17 | 1 | -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(). | jhay | 2003-04-17 | 1 | -0/+2 |
| | |||||
* | Add some tunable descriptions. | trhodes | 2003-04-17 | 1 | -2/+2 |
| | | | | | Submitted by: hmp Discussed with: bde | ||||
* | Put the spl calls back until we are sure that everything that they cover | jhay | 2003-04-17 | 1 | -3/+14 |
| | | | | are locked. | ||||
* | Pre-content whitespace commit. | trhodes | 2003-04-17 | 1 | -4/+4 |
| | | | | Discussed with: bde | ||||
* | Unbreak vinum, iostat and systat on sparc64 by changing the devstat | harti | 2003-04-17 | 1 | -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 the | orion | 2003-04-17 | 2 | -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 of | nectar | 2003-04-17 | 1 | -1/+1 |
| | | | | getpw*_r, getgr*_r interfaces. |