mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-17 23:28:15 +00:00
feat(coredump): improve the probability of accessing healthy TCBs
This commit is contained in:
@@ -48,6 +48,17 @@ static inline BaseType_t IRAM_ATTR xPortGetCoreID(void)
|
||||
return (BaseType_t) 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* @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
|
||||
*
|
||||
@@ -70,6 +81,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