|
|
@@ -196,10 +196,16 @@ int xt_clock_freq(void) __attribute__((deprecated));
|
|
|
#define configIDLE_TASK_STACK_SIZE CONFIG_FREERTOS_IDLE_TASK_STACKSIZE
|
|
|
#endif
|
|
|
|
|
|
-/* The Xtensa port uses a separate interrupt stack. Adjust the stack size */
|
|
|
-/* to suit the needs of your specific application. */
|
|
|
+/* Stack alignment, architecture specifc. Must be a power of two. */
|
|
|
+#define configSTACK_ALIGNMENT 16
|
|
|
+
|
|
|
+/* The Xtensa port uses a separate interrupt stack. Adjust the stack size
|
|
|
+ * to suit the needs of your specific application.
|
|
|
+ * Size needs to be aligned to the stack increment, since the location of
|
|
|
+ * the stack for the 2nd CPU will be calculated using configISR_STACK_SIZE.
|
|
|
+ */
|
|
|
#ifndef configISR_STACK_SIZE
|
|
|
-#define configISR_STACK_SIZE CONFIG_FREERTOS_ISR_STACKSIZE
|
|
|
+#define configISR_STACK_SIZE ((CONFIG_FREERTOS_ISR_STACKSIZE + configSTACK_ALIGNMENT - 1) & (~(configSTACK_ALIGNMENT - 1)))
|
|
|
#endif
|
|
|
|
|
|
/* Minimal heap size to make sure examples can run on memory limited
|