diff --git a/core/sys/mt.c b/core/sys/mt.c index 430440fe8..b59d9463d 100644 --- a/core/sys/mt.c +++ b/core/sys/mt.c @@ -100,6 +100,7 @@ mt_yield(void) void mt_exit(void) { + mtarch_pstop(); current->state = MT_STATE_EXITED; current = NULL; mtarch_yield();