mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 19:41:36 +08:00
Fix some list handling associated with priority inheritance
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5053 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
+12
-9
@@ -289,6 +289,18 @@ void os_start(void)
|
||||
g_idletcb.flags = TCB_FLAG_TTYPE_KERNEL;
|
||||
up_initial_state(&g_idletcb);
|
||||
|
||||
/* Initialize the semaphore facility(if in link). This has to be done
|
||||
* very early because many subsystems depend upon fully functional
|
||||
* semaphores.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
if (sem_initialize != NULL)
|
||||
#endif
|
||||
{
|
||||
sem_initialize();
|
||||
}
|
||||
|
||||
/* Initialize the memory manager */
|
||||
|
||||
#ifndef CONFIG_HEAP_BASE
|
||||
@@ -351,15 +363,6 @@ void os_start(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Initialize the semaphore facility. (if in link) */
|
||||
|
||||
#ifdef CONFIG_HAVE_WEAKFUNCTIONS
|
||||
if (sem_initialize != NULL)
|
||||
#endif
|
||||
{
|
||||
sem_initialize();
|
||||
}
|
||||
|
||||
/* Initialize the named message queue facility (if in link) */
|
||||
|
||||
#ifndef CONFIG_DISABLE_MQUEUE
|
||||
|
||||
Reference in New Issue
Block a user