解决编译错误

This commit is contained in:
heyuanjie87 2024-08-30 21:11:47 +08:00 committed by Rbb666
parent 08888b6e23
commit b14a14057c
1 changed files with 2 additions and 0 deletions

View File

@ -175,7 +175,9 @@ void rt_thread_idle_init(void)
char idle_thread_name[RT_NAME_MAX]; char idle_thread_name[RT_NAME_MAX];
#endif /* RT_NAME_MAX > 0 */ #endif /* RT_NAME_MAX > 0 */
#ifdef RT_USING_IDLE_HOOK
rt_spin_lock_init(&_hook_spinlock); rt_spin_lock_init(&_hook_spinlock);
#endif
for (i = 0; i < _CPUS_NR; i++) for (i = 0; i < _CPUS_NR; i++)
{ {