arch/xtensa/src/commin/xtensa_usestack&createstack.c: Set the alignment
to be 4 bytes. Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
parent
172896728f
commit
0182e6e8bb
@ -60,13 +60,9 @@
|
|||||||
* Pre-processor Macros
|
* Pre-processor Macros
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* XTENSA requires at least a 4-byte stack alignment. For floating point
|
/* XTENSA requires at least a 4-byte stack alignment. */
|
||||||
* use, however, the stack must be aligned to 8-byte addresses.
|
|
||||||
*
|
|
||||||
* REVIST: Is this true? Comes from ARM EABI
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define STACK_ALIGNMENT 8
|
#define STACK_ALIGNMENT 4
|
||||||
|
|
||||||
/* Stack alignment macros */
|
/* Stack alignment macros */
|
||||||
|
|
||||||
|
@ -54,15 +54,9 @@
|
|||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
/* XTENSA requires at least a 4-byte stack alignment. For floating point
|
/* XTENSA requires at least a 4-byte stack alignment. */
|
||||||
* use, however, the stack must be aligned to 8-byte addresses.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef CONFIG_LIBC_FLOATINGPOINT
|
|
||||||
# define STACK_ALIGNMENT 8
|
|
||||||
#else
|
|
||||||
#define STACK_ALIGNMENT 4
|
#define STACK_ALIGNMENT 4
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Stack alignment macros */
|
/* Stack alignment macros */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user