forked from nuttx/nuttx-update
arch/assertion logic: Fix additional places where the test for an IDLE task is incorrect. It is not invalid in all configurations to check for PID==0. However, the logic fixed in these places lackes sufficient intelligence to find the right stack for the CPU IDLE thread and could still show the wrong stack.
This commit is contained in:
parent
ec9265aa95
commit
db24306435
16 changed files with 16 additions and 16 deletions
|
@ -205,7 +205,7 @@ static void up_dumpstate(void)
|
|||
|
||||
/* Get the limits on the user stack memory */
|
||||
|
||||
if (rtcb->pid == 0)
|
||||
if (rtcb->flink == NULL)
|
||||
{
|
||||
ustackbase = g_idle_topstack - 4;
|
||||
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;
|
||||
|
|
|
@ -242,7 +242,7 @@ static void up_dumpstate(void)
|
|||
|
||||
/* Get the limits on the user stack memory */
|
||||
|
||||
if (rtcb->pid == 0)
|
||||
if (rtcb->flink == NULL)
|
||||
{
|
||||
ustackbase = g_idle_topstack - 4;
|
||||
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;
|
||||
|
|
|
@ -246,7 +246,7 @@ static void up_dumpstate(void)
|
|||
|
||||
/* Get the limits on the user stack memory */
|
||||
|
||||
if (rtcb->pid == 0)
|
||||
if (rtcb->flink == NULL)
|
||||
{
|
||||
ustackbase = g_idle_topstack - 4;
|
||||
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;
|
||||
|
|
|
@ -250,7 +250,7 @@ static void up_dumpstate(void)
|
|||
|
||||
/* Get the limits on the user stack memory */
|
||||
|
||||
if (rtcb->pid == 0)
|
||||
if (rtcb->flink == NULL)
|
||||
{
|
||||
ustackbase = g_idle_topstack - 4;
|
||||
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;
|
||||
|
|
|
@ -242,7 +242,7 @@ static void up_dumpstate(void)
|
|||
|
||||
/* Get the limits on the user stack memory */
|
||||
|
||||
if (rtcb->pid == 0)
|
||||
if (rtcb->flink == NULL)
|
||||
{
|
||||
ustackbase = g_idle_topstack - 4;
|
||||
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;
|
||||
|
|
|
@ -175,7 +175,7 @@ void up_dumpstate(void)
|
|||
|
||||
/* Get the limits on the user stack memory */
|
||||
|
||||
if (rtcb->pid == 0)
|
||||
if (rtcb->flink == NULL)
|
||||
{
|
||||
ustackbase = g_idle_topstack - 1;
|
||||
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;
|
||||
|
|
|
@ -141,7 +141,7 @@ void up_dumpstate(void)
|
|||
|
||||
/* Get the limits on the user stack memory */
|
||||
|
||||
if (rtcb->pid == 0)
|
||||
if (rtcb->flink == NULL)
|
||||
{
|
||||
ustackbase = g_idle_topstack - 4;
|
||||
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;
|
||||
|
|
|
@ -199,7 +199,7 @@ static void up_dumpstate(void)
|
|||
|
||||
/* Get the limits on the user stack memory */
|
||||
|
||||
if (rtcb->pid == 0)
|
||||
if (rtcb->flink == NULL)
|
||||
{
|
||||
ustackbase = g_idle_topstack - 4;
|
||||
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;
|
||||
|
|
|
@ -154,7 +154,7 @@ void up_dumpstate(void)
|
|||
|
||||
/* Get the limits on the user stack memory */
|
||||
|
||||
if (rtcb->pid == 0)
|
||||
if (rtcb->flink == NULL)
|
||||
{
|
||||
ustackbase = g_idle_topstack - 4;
|
||||
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;
|
||||
|
|
|
@ -150,7 +150,7 @@ void lm32_dumpstate(void)
|
|||
|
||||
/* Get the limits on the user stack memory */
|
||||
|
||||
if (rtcb->pid == 0)
|
||||
if (rtcb->flink == NULL)
|
||||
{
|
||||
ustackbase = g_idle_topstack - 4;
|
||||
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;
|
||||
|
|
|
@ -247,7 +247,7 @@ static void up_dumpstate(void)
|
|||
|
||||
/* Get the limits on the user stack memory */
|
||||
|
||||
if (rtcb->pid == 0)
|
||||
if (rtcb->flink == NULL)
|
||||
{
|
||||
ustackbase = g_idle_topstack - 4;
|
||||
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;
|
||||
|
|
|
@ -166,7 +166,7 @@ void up_dumpstate(void)
|
|||
|
||||
/* Get the limits on the user stack memory */
|
||||
|
||||
if (rtcb->pid == 0)
|
||||
if (rtcb->flink == NULL)
|
||||
{
|
||||
ustackbase = g_idle_topstack - 1;
|
||||
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;
|
||||
|
|
|
@ -156,7 +156,7 @@ void up_dumpstate(void)
|
|||
|
||||
/* Get the limits on the user stack memory */
|
||||
|
||||
if (rtcb->pid == 0)
|
||||
if (rtcb->flink == NULL)
|
||||
{
|
||||
ustackbase = g_idle_topstack - 4;
|
||||
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;
|
||||
|
|
|
@ -159,7 +159,7 @@ void up_dumpstate(void)
|
|||
|
||||
/* Get the limits on the user stack memory */
|
||||
|
||||
if (rtcb->pid == 0)
|
||||
if (rtcb->flink == NULL)
|
||||
{
|
||||
ustackbase = g_idle_topstack - 4;
|
||||
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;
|
||||
|
|
|
@ -160,7 +160,7 @@ static void up_dumpstate(void)
|
|||
|
||||
/* Get the limits on the user stack memory */
|
||||
|
||||
if (rtcb->pid == 0)
|
||||
if (rtcb->flink == NULL)
|
||||
{
|
||||
ustackbase = g_idle_topstack - 4;
|
||||
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;
|
||||
|
|
|
@ -214,7 +214,7 @@ void xtensa_dumpstate(void)
|
|||
|
||||
/* Get the limits on the user stack memory */
|
||||
|
||||
if (rtcb->pid == 0)
|
||||
if (rtcb->flink == NULL)
|
||||
{
|
||||
ustackbase = (uint32_t)&g_idlestack[IDLETHREAD_STACKWORDS-1];
|
||||
ustacksize = IDLETHREAD_STACKSIZE;
|
||||
|
|
Loading…
Reference in a new issue