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

View File

@ -205,7 +205,7 @@ static void up_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;

View File

@ -242,7 +242,7 @@ static void up_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;

View File

@ -246,7 +246,7 @@ static void up_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;

View File

@ -250,7 +250,7 @@ static void up_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;

View File

@ -242,7 +242,7 @@ static void up_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;

View File

@ -175,7 +175,7 @@ void up_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 - 1;
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;

View File

@ -141,7 +141,7 @@ void up_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;

View File

@ -199,7 +199,7 @@ static void up_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;

View File

@ -154,7 +154,7 @@ void up_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;

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;

View File

@ -247,7 +247,7 @@ static void up_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;

View File

@ -166,7 +166,7 @@ void up_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 - 1;
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;

View File

@ -156,7 +156,7 @@ void up_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;

View File

@ -159,7 +159,7 @@ void up_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;

View File

@ -160,7 +160,7 @@ static void up_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;

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;