diff options
Diffstat (limited to 'sys/kern/kern_thr.c')
| -rw-r--r-- | sys/kern/kern_thr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c index 31c638ecb434..5f23f6dfcaef 100644 --- a/sys/kern/kern_thr.c +++ b/sys/kern/kern_thr.c @@ -106,7 +106,11 @@ thr_exit1(void) td->td_last_kse = NULL; thread_stash(td); +#if defined(__i386__) || defined(__sparc64__) + cpu_throw(td, choosethread()); +#else cpu_throw(); +#endif } #define RANGEOF(type, start, end) (offsetof(type, end) - offsetof(type, start)) |
