dump: dump the stack information. [1/1]
PD#SWPL-30934
Problem:
add the function of dump stack.
print the register value when crash.
Solution:
print the stack information.
Verify:
s2c_ah219.
Change-Id: Ib595211bde87040797743601f355a2f5143df960
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
diff --git a/lib/include/task.h b/lib/include/task.h
index d0ee068..3cb8991 100644
--- a/lib/include/task.h
+++ b/lib/include/task.h
@@ -136,6 +136,7 @@
uint32_t ulRunTimeCounter; /* The total run time allocated to the task so far, as defined by the run time stats clock. See http://www.freertos.org/rtos-run-time-stats.html. Only valid when configGENERATE_RUN_TIME_STATS is defined as 1 in FreeRTOSConfig.h. */
StackType_t *pxStackBase; /* Points to the lowest address of the task's stack area. */
uint16_t usStackHighWaterMark; /* The minimum amount of stack space that has remained for the task since the task was created. The closer this value is to zero the closer the task has come to overflowing its stack. */
+ StackType_t uStackTotal;
} TaskStatus_t;
/* Possible return values for eTaskConfirmSleepModeStatus(). */
@@ -2328,6 +2329,7 @@
*/
void vTaskInternalSetTimeOutState( TimeOut_t * const pxTimeOut ) PRIVILEGED_FUNCTION;
+void vTaskDumpStack(TaskHandle_t xTask);
#ifdef __cplusplus
}