arch/ all assertion functions: up_assert move the register dump to first make the more important info first

This commit is contained in:
Xiang Xiao
2018-11-11 12:53:59 -06:00
committed by Gregory Nutt
parent dfe788be25
commit 543f4ed8ec
18 changed files with 76 additions and 76 deletions
+4 -4
View File
@@ -144,6 +144,10 @@ void lm32_dumpstate(void)
uint32_t istacksize;
#endif
/* Dump the registers (if available) */
up_registerdump();
/* Get the limits on the user stack memory */
if (rtcb->pid == 0)
@@ -217,10 +221,6 @@ void lm32_dumpstate(void)
{
up_stackdump(sp, ustackbase);
}
/* Then dump the registers (if available) */
up_registerdump();
}
#endif /* CONFIG_ARCH_STACKDUMP */