thread stage 10: (note stage 9 was the kern/lwkt_rwlock commit). Cleanup
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 22 Jun 2003 04:30:43 +0000 (04:30 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 22 Jun 2003 04:30:43 +0000 (04:30 +0000)
commit7d0bac62a4baa2f0c1d142afccecf2935043ce15
treefa8c9cf12b10ced0d714c4440469eb3a4c88060d
parentae8050a4904aadeff6b7c0cbe8719188ebc1fa83
thread stage 10: (note stage 9 was the kern/lwkt_rwlock commit).  Cleanup
thread and process creation functions.  Check the spl against ipending in
cpu_lwkt_restore (so the idle loop does not lockup the machine).  Remove
the old VM object kstack allocation and freeing code.  Leave newly created
processes in a stopped state to fix wakeup/fork_handler races.  Normalize
the lwkt_init_*() functions.

Add a sysctl debug.untimely_switch which will cause the last crit_exit()
to yield, which causes a task switch to occur in wakeup() and catches a
lot of 4.x-isms that can be found and fixed on UP.
20 files changed:
sys/i386/i386/machdep.c
sys/i386/i386/pmap.c
sys/i386/i386/swtch.s
sys/i386/i386/vm_machdep.c
sys/kern/init_main.c
sys/kern/kern_fork.c
sys/kern/kern_kthread.c
sys/kern/kern_synch.c
sys/kern/lwkt_rwlock.c
sys/kern/lwkt_thread.c
sys/kern/vfs_aio.c
sys/netproto/smb/smb_subr.c
sys/platform/pc32/i386/machdep.c
sys/platform/pc32/i386/pmap.c
sys/platform/pc32/i386/swtch.s
sys/platform/pc32/i386/vm_machdep.c
sys/sys/proc.h
sys/sys/thread.h
sys/vm/pmap.h
sys/vm/vm_glue.c