summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
...
* Wrap the IPI definitions and function prototypes in #ifdef SMP.jhb2001-01-241-0/+2
|
* - Rename the gd_cpuno member of struct globaldata to gd_cpuid.jhb2001-01-244-16/+24
| | | | - Add a globaldata_register() prototype in the SMP case.
* - Proc locking.jhb2001-01-241-2/+6
| | | | - P_OWEUPC -> PS_OWEUPC.
* - Change userret() to take a struct trapframe * as its second argument andjhb2001-01-241-59/+61
| | | | | | | | | | | | | | | | to extract the PC from that to send to addupc_task() so that it can be called from MI code. - Remove all traces of have_giant with extreme prejudice and use mtx_owned(&Giant) instead where appropriate. - Proc locking. - P_FOO -> PS_FOO. - Don't grab Giant just to look in curproc's p_addr during a trap since we may choose to immediately exit. Instead, delay grabbing Giant a bit until we actually need it. - Don't reset 'p' to 'curproc' in syscall() to handle the case of a child returning from fork1() since children don't return via syscall(). - Remove an XXX comment in ast() that questions the correctness of the userland check. The code is correct.
* - Proc locking.jhb2001-01-242-8/+48
| | | | - P_INMEM -> PS_INMEM.
* - Proc locking.jhb2001-01-241-38/+47
| | | | | | | - Don't send IPIs for pmap_invalidate_page() or pmap_invalidate_all() in the UP case. - Catch up to cpuno -> cpuid. - Convert some sanity checks that were #ifdef DIAGNOSTIC to KASSERT()'s.
* - Adjust some whitespace to reduce diffs with the i386 version.jhb2001-01-241-103/+102
| | | | | | | | | | | | | | | | | | | | - Rename the per-CPU variable 'cpuno' to 'cpuid'. This was done so that there is one consistent name across all architectures for a logical CPU id. - Remove all traces of IRQ forwarding. - Add globaldata_register() hook called by globaldata_init() to register globaldata structures in the cpuid_to_globaldata array. - Catch up to P_FOO -> PS_FOO. - Bring across some fixes for forwarded_statclock() from the i386 version to handle ithreads and idleproc properly. - Rename addugd_intr_forwarded() to addupc_intr_forwarded() so that it is the same name on all architectures. - Set flags in p_sflag instead of calling psignal() from forward_hardclock(). - Proc locking. - When we handle an IPI, turn off its bit in the mask of IPI's we are currently handling so that an IPI doesn't send a CPU into an infinite loop.
* - Initialize curproc, proc0.p_heldmtx, and proc0.p_contested earlier sojhb2001-01-241-2/+48
| | | | | | | | | that mutex operations work. - Enter Giant earlier so we hold it during boot. - Proc locking. - Move globaldata_init() into here from mp_machdep.c so that UP kernels don't depend on mp_machdep.c. Use a callout in the SMP case to register the boot processor's globaldata in the cpuid_to_globaldata array.
* - Wrap the IPI interrupt handler in #ifdef SMP.jhb2001-01-241-2/+4
| | | | | - Catch up to cpuno -> cpuid change. - Add parens around a subexpression to quiet a warning.
* cpuno -> cpuid.jhb2001-01-242-2/+2
|
* Don't import the nonexistent astpending variable.jhb2001-01-241-2/+0
|
* Wrap the startup code used by secondary processors in #ifdef SMP.jhb2001-01-241-0/+2
|
* Remove the Xforward_irq IPI.jhb2001-01-242-8/+0
|
* - Remove all the #if 0'd code that used to implement IRQ forwarding.jhb2001-01-243-255/+0
| | | | - Remove #if 0'd lazy interrupt mask.
* Remove unused locks: cpl, fast_intr, intr, mpintr.jhb2001-01-241-4/+0
|
* - Proc locking.jhb2001-01-242-8/+14
| | | | | - P_OWEUPC -> PS_OWEUPC. - Remove obsolete prototype for MD fork_return().
* - Remove Xforward_irq, cpl_lock, and fast_intr_lock.jhb2001-01-241-3/+1
| | | | - Add fork_exit.
* Setup the return values for a child process in the trapframe when we setupjhb2001-01-242-0/+8
| | | | the rest of the trapframe instead of doing it in fork_return().
* - Kill the have_giant parameter to userret() along with all instances ofjhb2001-01-243-297/+222
| | | | | | | | | | | | | that name as a variable. Use mtx_owned(&Giant) where appropriate instead. - Proc locking. - P_FOO -> PS_FOO. - Update comments about enable interrupts during trap and why this may be bad if we trap while holding a spin mutex. - Don't bother resetting p to curproc in syscall() in case we are the child returning from fork. The child hasn't returned from fork through syscall in a while. - Remove fork_return() as it has been superseded by the MI version.
* - Proc locking.jhb2001-01-243-7/+54
| | | | - P_INMEM -> PS_INMEM.
* - Relocate portions of this file to get it into an order closer to that ofjhb2001-01-247-1197/+1071
| | | | | | | | | | | | | the alpha mp_machdep.c. - Proc locking. - Catch up to the P_FOO -> PS_FOO proc flags changes. - Stick ap_init()'s prototype with the other prototypes. - Remove the Xforwardirq IPI. - Remove unused simplelocks. - Don't try to psignal() from forward_statclock(), but set the appropriate signal pending flag in p_sflag instead. - Add in KTR_SMP tracepoints for various SMP functions. (Brought over from the alpha port)
* - Proc locking.jhb2001-01-242-16/+58
| | | | | | | - Setup proc0.p_heldmtx, proc0.contested, and curproc earlier so that we can use mutexes. - Initialize sched_lock and Giant earlier and enter Giant during init386. - Use suser(9) instead of checking cr_uid directly.
* Call fork_exit() now instead of futzing around in assembly during a forkjhb2001-01-243-72/+9
| | | | return.
* - Split p_flag up into two fields. p_flag keeps most of the previous flagsjhb2001-01-241-24/+33
| | | | | | | | | | | | | | | | | | | | | and is protected by the proc lock. p_sflag is protected by sched_lock and holds the following flags: PS_INMEM, PS_OWEUPC, PS_PROFIL, PS_SINTR, PS_TIMEOUT, PS_ALRMPEND, PS_PROFPEND, PS_CVWAITQ, PS_SWAPINREQ, and PS_SWAPPING. - p_klist is definitely locked now by the proc lock. - p_runtime, p_[usi]u are locked by sched_lock. - Add a new P_KTHREAD flag set for kernel threads created via kthread_create(9). - STOPEVENT() only needs the proc lock, it does not need Giant. - faultin() already checks PS_INMEM, so simplify the check in PHOLD() so that we only need to grab the proc lock and let faultin() perform the PS_INMEM check. - Add a prototype for zpfind(). - Add prototypes for the new fork_exit() and fork_return() MI functions that manage the fork return path. - Add a prototype for the MD function userret() so that it can be called from fork_return(). - Add needed include of <machine/frame.h> in the kernel.
* Fix a typo.jhb2001-01-241-1/+1
| | | | Reported by: albert
* remove redundant definitions of card types:hm2001-01-2430-451/+118
| | | | | | | - remove all occurances of FLAG_XXX values and replace with CARD_TYPEP_XXX - remove sc_flag from isic softc and replace it with sc_cardtyp remove some left over redundant definitions from isic and i4b_l1.h remove left over cvs id from i4b cvs repository
* Add missing include.jhb2001-01-241-0/+1
|
* Never reuse AUTO_OID values.mckusick2001-01-241-7/+5
| | | | Approved by: Alfred Perlstein <bright@wintelcom.net>
* The lock being destroyed was misnamed, not unused. Add the lockdestroy()jhb2001-01-241-0/+2
| | | | | | back in but with the proper name so that this compiles. Submitted by: jasone
* #ifdef a local variable only used in debugging code.jhb2001-01-241-1/+4
| | | | Reviewed by: -scsi
* Const'ify cam_sim.sim_name to quiet warnings.jhb2001-01-242-9/+9
| | | | Reviewed by: -scsi
* don't grope around inside snd_dbuf structures as they will change in futurecg2001-01-241-11/+0
|
* fix certain cards failing to attachcg2001-01-241-4/+6
| | | | Submitted by: Russell Cattelan <cattelan@thebarn.com>
* fix blocksizing for playback, implement blocksizing for recordcg2001-01-241-1/+12
|
* some cosmetics, changed channel setup and revamped irq handling - ignorecg2001-01-242-26/+57
| | | | repeated interrupts
* prevent excessively small buffer sizes resulting in hundreds of irqs percg2001-01-241-13/+15
| | | | second
* Don't grab Giant when calling kmem_alloc/kmem_free as this is justjhb2001-01-241-4/+0
| | | | | encouraging other people to follow the same practice. If this is going to be done, then it should be done inside of those two functions instead.
* Proc locking.jhb2001-01-244-26/+100
|
* - Proc locking.jhb2001-01-241-10/+45
| | | | - Protect calcru() with sched_lock.
* - Proc locking.jhb2001-01-241-7/+27
| | | | - Protect calcru() with sched_lock.
* Proc locking.jhb2001-01-245-2/+31
|
* Proc locking to protect p_ucred while we obtain additional references.jhb2001-01-242-4/+30
|
* - Proc locking.jhb2001-01-241-5/+26
| | | | | - Use FreeBSD stackgap_init() semantics. - Adjust some #ifdef's to hide unused variables.
* - Proc locking.jhb2001-01-241-1/+6
| | | | - Use NULL instead of 0.
* "Rejected with status" is better than "Rejected for status".mjacob2001-01-241-1/+1
|
* Use selrecord() instead of doing the work ourselves.jhb2001-01-242-15/+3
|
* Make the device name in an isa_device a const char * instead of a char *jhb2001-01-241-1/+1
| | | | to silence cast-qual warnings.
* Use queue macros.jhb2001-01-243-3/+3
|
* Proc locking.jhb2001-01-236-8/+41
|
* - Use 'p' instead of 'curproc' for the namei lookup as this is whatjhb2001-01-231-6/+20
| | | | | other image activators use. - Proc locking.
OpenPOWER on IntegriCloud