mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 10:46:02 +08:00
sbrk() need to initialized the memory manager on the first call
This commit is contained in:
@@ -220,7 +220,7 @@ static FAR const char g_idlename[] = "Idle Task";
|
||||
|
||||
/* This the IDLE idle threads argument list. */
|
||||
|
||||
static char *g_idleargv[2];
|
||||
static FAR char *g_idleargv[2];
|
||||
|
||||
/****************************************************************************
|
||||
* Private Function Prototypes
|
||||
@@ -321,7 +321,7 @@ void os_start(void)
|
||||
g_idleargv[0] = (FAR char *)g_idlename;
|
||||
#endif /* CONFIG_TASK_NAME_SIZE */
|
||||
g_idleargv[1] = NULL;
|
||||
g_idletcb.argv = &g_idleargv;
|
||||
g_idletcb.argv = g_idleargv;
|
||||
|
||||
/* Then add the idle task's TCB to the head of the ready to run list */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user