--- src/sys/platform/pc32/i386/vm_machdep.c 2007/02/03 17:05:58 1.56 +++ src/sys/platform/pc32/i386/vm_machdep.c 2007/02/24 14:24:06 1.57 @@ -232,7 +232,7 @@ cpu_set_thread_handler(thread_t td, void } void -cpu_proc_exit(void) +cpu_lwp_exit(void) { struct thread *td = curthread; struct pcb *pcb; @@ -295,12 +295,8 @@ cpu_thread_exit(void) void cpu_proc_wait(struct proc *p) { - struct thread *td; - /* drop per-process resources */ - td = pmap_dispose_proc(p); - if (td) - lwkt_free_thread(td); + pmap_dispose_proc(p); } #ifdef notyet