mirror of
https://github.com/espressif/esp-idf.git
synced 2026-06-11 11:42:39 +02:00
feat(coredump): improve the probability of accessing healthy TCBs
This commit is contained in:
@@ -291,6 +291,7 @@ void vPortExitCriticalIDF(void);
|
||||
|
||||
// ----------------------- System --------------------------
|
||||
|
||||
bool portVALID_LIST_MEM(const void *ptr);
|
||||
bool portVALID_TCB_MEM(const void *ptr);
|
||||
bool portVALID_STACK_MEM(const void *ptr);
|
||||
|
||||
|
||||
@@ -600,6 +600,10 @@ unsigned long ulPortGetRunTime( void )
|
||||
return ( unsigned long ) xTimes.tms_utime;
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
bool portVALID_LIST_MEM(const void *ptr)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
bool portVALID_TCB_MEM(const void *ptr)
|
||||
{
|
||||
|
||||
@@ -323,6 +323,17 @@ void vPortSetStackWatchpoint(void *pxStackStart);
|
||||
|
||||
// -------------------- Heap Related -----------------------
|
||||
|
||||
/**
|
||||
* @brief Checks if a given piece of memory can be used to store a FreeRTOS list
|
||||
*
|
||||
* - Defined in heap_idf.c
|
||||
*
|
||||
* @param ptr Pointer to memory
|
||||
* @return true Memory can be used to store a List
|
||||
* @return false Otherwise
|
||||
*/
|
||||
bool xPortCheckValidListMem(const void *ptr);
|
||||
|
||||
/**
|
||||
* @brief Checks if a given piece of memory can be used to store a task's TCB
|
||||
*
|
||||
@@ -345,6 +356,7 @@ bool xPortCheckValidTCBMem(const void *ptr);
|
||||
*/
|
||||
bool xPortcheckValidStackMem(const void *ptr);
|
||||
|
||||
#define portVALID_LIST_MEM(ptr) xPortCheckValidListMem(ptr)
|
||||
#define portVALID_TCB_MEM(ptr) xPortCheckValidTCBMem(ptr)
|
||||
#define portVALID_STACK_MEM(ptr) xPortcheckValidStackMem(ptr)
|
||||
|
||||
|
||||
@@ -365,6 +365,17 @@ void vPortSetStackWatchpoint(void *pxStackStart);
|
||||
|
||||
// -------------------- Heap Related -----------------------
|
||||
|
||||
/**
|
||||
* @brief Checks if a given piece of memory can be used to store a FreeRTOS list
|
||||
*
|
||||
* - Defined in heap_idf.c
|
||||
*
|
||||
* @param ptr Pointer to memory
|
||||
* @return true Memory can be used to store a List
|
||||
* @return false Otherwise
|
||||
*/
|
||||
bool xPortCheckValidListMem(const void *ptr);
|
||||
|
||||
/**
|
||||
* @brief Checks if a given piece of memory can be used to store a task's TCB
|
||||
*
|
||||
@@ -387,6 +398,7 @@ bool xPortCheckValidTCBMem(const void *ptr);
|
||||
*/
|
||||
bool xPortcheckValidStackMem(const void *ptr);
|
||||
|
||||
#define portVALID_LIST_MEM(ptr) xPortCheckValidListMem(ptr)
|
||||
#define portVALID_TCB_MEM(ptr) xPortCheckValidTCBMem(ptr)
|
||||
#define portVALID_STACK_MEM(ptr) xPortcheckValidStackMem(ptr)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user