We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeb98d9 commit 40ae660Copy full SHA for 40ae660
include/nuttx/init.h
@@ -38,6 +38,7 @@
38
* initialization.
39
*/
40
41
+#define OSINIT_TASK_READY() (g_nx_initstate >= OSINIT_TASKLISTS)
42
#define OSINIT_MM_READY() (g_nx_initstate >= OSINIT_MEMORY)
43
#define OSINIT_HW_READY() (g_nx_initstate >= OSINIT_HARDWARE)
44
#define OSINIT_OS_READY() (g_nx_initstate >= OSINIT_OSREADY)
sched/sched/sched_idletask.c
@@ -62,7 +62,7 @@ bool sched_idletask(void)
62
* have been initialized and, in that case, rtcb may be NULL.
63
64
65
- DEBUGASSERT(rtcb != NULL || g_nx_initstate < OSINIT_TASKLISTS);
+ DEBUGASSERT(rtcb != NULL || !OSINIT_TASK_READY());
66
if (rtcb != NULL)
67
{
68
/* The IDLE task TCB is distinguishable by a few things:
0 commit comments