mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 21:36:28 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user