summaryrefslogtreecommitdiff
path: root/arch/xtensa/include/asm/core.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa/include/asm/core.h')
-rw-r--r--arch/xtensa/include/asm/core.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/core.h b/arch/xtensa/include/asm/core.h
index 9138077e567d..f856d2bcb9f3 100644
--- a/arch/xtensa/include/asm/core.h
+++ b/arch/xtensa/include/asm/core.h
@@ -37,4 +37,11 @@
#endif
#endif
+/* Xtensa ABI requires stack alignment to be at least 16 */
+#if XCHAL_DATA_WIDTH > 16
+#define XTENSA_STACK_ALIGNMENT XCHAL_DATA_WIDTH
+#else
+#define XTENSA_STACK_ALIGNMENT 16
+#endif
+
#endif