mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-02-21 17:15:23 +08:00
[src] scheduler update stackcheck
This commit is contained in:
parent
ceb3aa9657
commit
99e1b0d29b
@ -89,7 +89,8 @@ static void _rt_scheduler_stack_check(struct rt_thread *thread)
|
||||
{
|
||||
RT_ASSERT(thread != RT_NULL);
|
||||
|
||||
if ((rt_uint32_t)thread->sp <= (rt_uint32_t)thread->stack_addr ||
|
||||
if (*((rt_uint8_t *)thread->stack_addr) != '#' ||
|
||||
(rt_uint32_t)thread->sp <= (rt_uint32_t)thread->stack_addr ||
|
||||
(rt_uint32_t)thread->sp >
|
||||
(rt_uint32_t)thread->stack_addr + (rt_uint32_t)thread->stack_size)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user