--- src/sys/i386/i386/Attic/vm_machdep.c 2005/11/04 08:57:27 1.38 +++ src/sys/i386/i386/Attic/vm_machdep.c 2005/12/02 22:02:16 1.39 @@ -294,6 +294,7 @@ void cpu_thread_exit(void) { curthread->td_switch = cpu_exit_switch; + curthread->td_flags |= TDF_EXITING; lwkt_switch(); panic("cpu_exit"); }