From 10d00ff41c407f9d309a4319621c90ca363bf887 Mon Sep 17 00:00:00 2001 From: zhaohengbo <1755923166@qq.com> Date: Sat, 15 Dec 2018 20:27:38 +0800 Subject: [PATCH] reduce change --- src/scheduler.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/scheduler.c b/src/scheduler.c index 697df63ee1..503639fa81 100644 --- a/src/scheduler.c +++ b/src/scheduler.c @@ -84,15 +84,12 @@ static void _rt_scheduler_stack_check(struct rt_thread *thread) #if defined(ARCH_CPU_STACK_GROWS_UPWARD) if (*((rt_uint8_t *)((rt_ubase_t)thread->stack_addr + thread->stack_size - 1)) != '#' || - (rt_ubase_t)thread->sp <= (rt_ubase_t)thread->stack_addr || - (rt_ubase_t)thread->sp > - (rt_ubase_t)thread->stack_addr + (rt_ubase_t)thread->stack_size) #else if (*((rt_uint8_t *)thread->stack_addr) != '#' || +#endif (rt_ubase_t)thread->sp <= (rt_ubase_t)thread->stack_addr || (rt_ubase_t)thread->sp > (rt_ubase_t)thread->stack_addr + (rt_ubase_t)thread->stack_size) -#endif { rt_ubase_t level;