From 8774e7a4a055a12eea008e31d32bdf92dcfb6a95 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Mon, 15 Feb 2016 18:35:05 -0600 Subject: [PATCH] SMP: Fix missing initialization value --- sched/init/os_start.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sched/init/os_start.c b/sched/init/os_start.c index e99331b6e6..af5dc3f78e 100644 --- a/sched/init/os_start.c +++ b/sched/init/os_start.c @@ -429,6 +429,7 @@ void os_start(void) */ bzero((void *)&g_idletcb[cpu], sizeof(struct task_tcb_s)); + g_idletcb[cpu].cmn.pid = g_lastpid; g_idletcb[cpu].cmn.task_state = TSTATE_TASK_RUNNING; /* Set the entry point. This is only for debug purposes. NOTE: that