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
@@ -214,7 +214,7 @@ void xtensa_dumpstate(void)
/* Get the limits on the user stack memory */
if (rtcb->flink == NULL)
if (rtcb->pid == 0) /* Check for CPU0 IDLE thread */
{
ustackbase = (uint32_t)&g_idlestack[IDLETHREAD_STACKWORDS-1];
ustacksize = IDLETHREAD_STACKSIZE;