arch/xxx/src/xxx/up_assert.c: Dump CPU0 IDLE stack only when PID equals 0. IDLE threads of other CPUs do not need this special check

This commit is contained in:
Xiang Xiao
2019-01-26 10:59:23 -06:00
committed by Gregory Nutt
parent b6606e61b4
commit 763ba51b78
16 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ void lm32_dumpstate(void)
/* Get the limits on the user stack memory */
if (rtcb->flink == NULL)
if (rtcb->pid == 0) /* Check for CPU0 IDLE thread */
{
ustackbase = g_idle_topstack - 4;
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;