提交 8437c049 编写于 作者: B Bernard Xiong

[Kernel] Fix the number_mask initialization issue in TCB.

上级 9c440225
......@@ -159,6 +159,12 @@ static rt_err_t _rt_thread_init(struct rt_thread *thread,
thread->init_priority = priority;
thread->current_priority = priority;
thread->number_mask = 0;
#if RT_THREAD_PRIORITY_MAX > 32
thread->number = 0;
therad->high_mask = 0;
#endif
/* tick init */
thread->init_tick = tick;
thread->remaining_tick = tick;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册