From 1784c8be31da4a6b0eb42f3b08ff0447a3c993e8 Mon Sep 17 00:00:00 2001 From: yangjie11 Date: Sat, 21 Nov 2020 14:53:30 +0800 Subject: [PATCH] [src][scheduler] remove RT_USING_FINSH in kernel, remove list_thread() --- src/scheduler.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/scheduler.c b/src/scheduler.c index 2250c4a006..677be6cff7 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -90,12 +90,7 @@ static void _rt_scheduler_stack_check(struct rt_thread *thread) rt_ubase_t level; rt_kprintf("thread:%s stack overflow\n", thread->name); -#ifdef RT_USING_FINSH - { - extern long list_thread(void); - list_thread(); - } -#endif + level = rt_hw_interrupt_disable(); while (level); }