mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user