Fix some SMP-related compilation errors

This commit is contained in:
Gregory Nutt 2016-12-09 17:10:59 -06:00
parent 05f61def6a
commit 113d8bdcca
2 changed files with 2 additions and 1 deletions

View File

@ -44,6 +44,7 @@
#include <debug.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <nuttx/arch.h>
#include <nuttx/spinlock.h>

View File

@ -470,7 +470,7 @@ void os_start(void)
*/
#ifdef CONFIG_SMP
g_idletcb[cpu].cmn.flags = (TCB_FLAG_TTYPE_KERNEL TCB_FLAG_NONCANCELABLE |
g_idletcb[cpu].cmn.flags = (TCB_FLAG_TTYPE_KERNEL | TCB_FLAG_NONCANCELABLE |
TCB_FLAG_CPU_LOCKED);
g_idletcb[cpu].cmn.cpu = cpu;
#else