sbrk() need to initialized the memory manager on the first call

This commit is contained in:
Gregory Nutt
2014-09-02 08:05:11 -06:00
parent 83c381b4a9
commit a5af2568eb
4 changed files with 73 additions and 23 deletions
+2 -2
View File
@@ -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 */