mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
change(freertos/idf): Remove xCoreID TCB member for single-core
This commit does the following: - removes the xCoreID member from the TCB when building for single-core - xCoreID is no longer hard set to 0 when calling "PinnedToCore" task creation functions in single-core - Tidy up or add missing xCoreID asserts for functions that take xCoreID as an argument: - Functions that set/query a variable of a particular core will call taskVALID_CORE_ID() to ensure ) 0 <= xCoreID < configNUMBER_OF_CORES - Task creation functions that accept xCoreID also call taskVALID_CORE_ID() but also allow tskNO_AFFINITY. - Fix TaskStatus_t - Remove xCoreID from TaskStatus_t if configTASKLIST_INCLUDE_COREID is not defined. - Set xCoreID to 0 when calling vTaskGetInfo() in single-core builds
This commit is contained in:
@@ -38,10 +38,19 @@
|
||||
|
||||
/* Macros used instead ofsetoff() for better performance of interrupt handler */
|
||||
#define PORT_OFFSET_PX_STACK 0x30
|
||||
#define PORT_OFFSET_PX_END_OF_STACK (PORT_OFFSET_PX_STACK + \
|
||||
/* void * pxDummy6 */ 4 + \
|
||||
/* uint8_t ucDummy7[ configMAX_TASK_NAME_LEN ] */ CONFIG_FREERTOS_MAX_TASK_NAME_LEN + \
|
||||
/* BaseType_t xDummyCoreID */ 4)
|
||||
|
||||
#if CONFIG_FREERTOS_UNICORE
|
||||
#define CORE_ID_SIZE 0
|
||||
#else
|
||||
#define CORE_ID_SIZE 4
|
||||
#endif
|
||||
|
||||
#define PORT_OFFSET_PX_END_OF_STACK ( \
|
||||
PORT_OFFSET_PX_STACK \
|
||||
+ 4 /* void * pxDummy6 */ \
|
||||
+ CONFIG_FREERTOS_MAX_TASK_NAME_LEN /* uint8_t ucDummy7[ configMAX_TASK_NAME_LEN ] */ \
|
||||
+ CORE_ID_SIZE /* BaseType_t xDummyCoreID */ \
|
||||
)
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
|
||||
|
Reference in New Issue
Block a user