summaryrefslogtreecommitdiffstats
path: root/sys/i386
Commit message (Collapse)AuthorAgeFilesLines
* Add some description and clarification as to the use of the tdfx device.cokane2001-01-251-0/+9
| | | | | Answers many questions I have recieved and has a short description of what the driver actually does.
* Disable cy - it is now completely broken and needs non-trivial work.peter2001-01-251-7/+7
|
* - Change fork_exit() to take a pointer to a trapframe as its 3rd argumentjhb2001-01-241-1/+2
| | | | | | | instead of a trapframe directly. (Requested by bde.) - Convert the alpha switch_trampoline to call fork_exit() and use the MI fork_return() instead of child_return(). - Axe child_return().
* Newbusify ar(4).jhay2001-01-242-177/+342
|
* Convert all simplelocks to mutexes and remove the simplelock implementations.jasone2001-01-248-462/+114
|
* Remove the Xforward_irq IPI.jhb2001-01-241-4/+0
|
* - Remove all the #if 0'd code that used to implement IRQ forwarding.jhb2001-01-242-170/+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-241-4/+7
| | | | | - 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-241-0/+4
| | | | 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-241-99/+74
| | | | | | | | | | | | | 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-242-7/+48
| | | | - P_INMEM -> PS_INMEM.
* - Relocate portions of this file to get it into an order closer to that ofjhb2001-01-243-513/+459
| | | | | | | | | | | | | 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-241-8/+29
| | | | | | | - 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-241-24/+3
| | | | return.
* Proc locking.jhb2001-01-242-0/+17
|
* - 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.
* 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-242-2/+2
|
* 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.
* Move most of sys/mutex.h into kern/kern_mutex.c, thereby making the mutexjasone2001-01-211-0/+6
| | | | | | | | | | | inline functions non-inlined. Hide parts of the mutex implementation that should not be exposed. Make sure that WITNESS code is not executed during boot until the mutexes are fully initialized by SI_SUB_MUTEX (the original motivation for this commit). Submitted by: peter
* First step towards an MP-safe zone allocator:des2001-01-211-2/+2
| | | | | | | - have zalloc() and zfree() always lock the vm_zone. - remove zalloci() and zfreei(), which are now redundant. Reviewed by: bmilekic, jasone
* Make intr_nesting_level per-process, rather than per-cpu. Setupjake2001-01-2117-34/+49
| | | | | | | | interrupt threads to run with it always >= 1, so that malloc can detect M_WAITOK from "interrupt" context. This is also necessary in order to context switch from sched_ithd() directly. Reviewed By: peter
* Remove APIC_INTR_DIAGNOSTIC - this has been disabled for some time now.peter2001-01-216-301/+0
| | | | Remove some leftovers of removed SMP options.
* Remove MUTEX_DECLARE() and MTX_COLD. Instead, postpone full mutexjasone2001-01-214-9/+9
| | | | | | | | initialization until after malloc() is safe to call, then iterate through all mutexes and complete their initialization. This change is necessary in order to avoid some circular bootstrapping dependencies.
* Remove the MAYBE_PANIC and GUARD_CPU macros - unused.peter2001-01-211-34/+0
|
* Remove the per-cpu pages used for copy and zero-ing pages of memoryjake2001-01-217-132/+5
| | | | | | for SMP; just use the same ones as UP. These weren't used without holding Giant anyway, and the routines that use them would have to be protected from pre-emption to avoid migrating cpus.
* Implement optimized PCPU accessors. These are necessary to support ajake2001-01-211-15/+90
| | | | | | pre-emptable kernel. For variables of size 4 bytes or less they compile to a single instruction, which does not allow a process to migrate cpus in the middle, and get the value for the "wrong" cpu.
* Document some more options.asmodai2001-01-201-11/+26
| | | | | Apologies to Bruce for not yet cleaning it up in sections. Coming soon.
* Rename the ASSYM MTX_RECURSE to MTX_RECURSECNT in order to not conflictjake2001-01-202-3/+3
| | | | with the flag of the same name.
* Simplify the i386 asm MTX_{ENTER,EXIT} macros to just call thejake2001-01-203-111/+18
| | | | | | appropriate function, rather than doing a horse-and-buggy acquire. They now take the mutex type as an arg and can be used with sleep as well as spin mutexes.
* - Make npx_intr INTR_MPSAFE and move acquiring Giant into thejake2001-01-203-5/+5
| | | | | | function itself. - Remove a hack to allow acquiring Giant from the npx asm trap vector.
* Finish deprecating <sys/select.h> in favor of <sys/selinfo.h> in kernel code.wollman2001-01-203-3/+3
|
* Sync with GENERIC - drop I386_CPUpeter2001-01-191-1/+0
|
* Convert apm from a bogus 'count' into a plain option. Clean out somepeter2001-01-192-6/+6
| | | | other cruft from the files.alpha and files.ia64 that were related to this.
* Zap unused #include "apm.h"peter2001-01-191-1/+1
|
* Use #ifdef DEV_NPX from opt_npx.h instead of #if NNPX > 0 from npx.hpeter2001-01-197-36/+36
|
* EEK! vm86bios.s has got #if NNPX > 0 code without a correspondingpeter2001-01-191-0/+2
| | | | | #include "npx.h" - the code has been dead for a while and vm86 calls have not been saving FPU context it seems.
* At great personal risk to my sanity, turn off COMPAT_OLDISA and thepeter2001-01-191-3/+2
| | | | | two drivers that depend on it - ie and le. The compat code has not been disabled.
* Add missing twe (3ware) and ahb (adaptec 174x) devices (!)peter2001-01-191-0/+7
|
* Add in a space that got lost in the previous commit in some debugging codejhb2001-01-191-1/+1
| | | | so that '&' becomes a binary operator and not a unary operator.
* EEK! I missed a couple of places with the 24->32 interrupt change.peter2001-01-194-2/+30
|
* Remove #defines for the old lock function names and spl0/splzpeter2001-01-191-7/+0
|
* Remove reference to splz_unpend - it is long gone.peter2001-01-192-2/+2
|
* Catch a few alternative names for the syscall entry frame, eg: post-ELFpeter2001-01-191-1/+4
| | | | and int $0x80 entry methods.
* apic_itrace_splz[] is unusedpeter2001-01-193-3/+0
|
OpenPOWER on IntegriCloud