mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
fix(freertos): fix riscv pxEndOfStack offset alignment
Closes https://github.com/espressif/esp-idf/issues/18256
This commit is contained in:
committed by
Konstantin Kondrashov
parent
fb93ff749e
commit
ae11eba923
@@ -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 */ \
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user