--- src/sys/platform/vkernel/i386/vm_machdep.c 2007/02/03 10:30:12 1.7 +++ src/sys/platform/vkernel/i386/vm_machdep.c 2007/02/24 14:24:06 1.8 @@ -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