mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
SYSLOG: Now a two phase initialization. Some SYSLOG channels cannot be initialized until later in the bringup
This commit is contained in:
+10
-1
@@ -54,6 +54,7 @@
|
||||
#include <nuttx/mm/shm.h>
|
||||
#include <nuttx/kmalloc.h>
|
||||
#include <nuttx/sched_note.h>
|
||||
#include <nuttx/syslog/syslog.h>
|
||||
#include <nuttx/init.h>
|
||||
|
||||
#include "sched/sched.h"
|
||||
@@ -757,7 +758,15 @@ void os_start(void)
|
||||
DEBUGVERIFY(group_initialize(&g_idletcb[cpu]));
|
||||
g_idletcb[cpu].cmn.group->tg_flags = GROUP_FLAG_NOCLDWAIT;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
/* Start SYSLOG ***********************************************************/
|
||||
/* Late initialization of the system logging device. Some SYSLOG channel
|
||||
* must be initialized late in the initialization sequence because it may
|
||||
* depend on having IDLE task file structures setup.
|
||||
*/
|
||||
|
||||
syslog_initialize(SYSLOG_INIT_LATE);
|
||||
|
||||
#ifdef CONFIG_SMP
|
||||
/* Start all CPUs *********************************************************/
|
||||
|
||||
Reference in New Issue
Block a user