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
@@ -208,6 +208,10 @@ void xtensa_dumpstate(void)
_alert("CPU%d:\n", up_cpu_index());
#endif
/* Dump the registers (if available) */
xtensa_registerdump();
/* Get the limits on the user stack memory */
if (rtcb->pid == 0)
@@ -292,10 +296,6 @@ void xtensa_dumpstate(void)
xtensa_stackdump(sp, ustackbase);
}
/* Then dump the registers (if available) */
xtensa_registerdump();
/* Dump the state of all tasks (if available) */
up_showtasks();