Merge tag 'xtensa-20220325' of https://github.com/jcmvbkbc/linux-xtensa
[sfrench/cifs-2.6.git] / arch / xtensa / include / asm / core.h
index 9138077e567ddc333b07f3266a01ad64e903e570..f856d2bcb9f3618d9b8025b438590f5bed687f76 100644 (file)
 #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