fix(freertos): fix riscv pxEndOfStack offset alignment

Closes https://github.com/espressif/esp-idf/issues/18256
This commit is contained in:
Konstantin Kondrashov
2026-05-01 15:50:29 +03:00
committed by Konstantin Kondrashov
parent fb93ff749e
commit ae11eba923
3 changed files with 25 additions and 3 deletions
@@ -49,10 +49,13 @@
#define CORE_ID_SIZE 4
#endif
/* Align the value up to the nearest multiple of 4 */
#define PORT_ALIGN_UP_TO_4(value) (((value) + 3) & ~3)
#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 ] */ \
+ PORT_ALIGN_UP_TO_4(configMAX_TASK_NAME_LEN) /* uint8_t ucDummy7[ configMAX_TASK_NAME_LEN ] */ \
+ CORE_ID_SIZE /* BaseType_t xDummyCoreID */ \
)