Skip to content

Commit a70187f

Browse files
evgeniy-paltsevgalak
authored andcommitted
ARC: arch.h: setup ARCH_STACK_PTR_ALIGN correctly for 64 bit
Stack is aligned by 8 for 64 bit ISA and 4 for 32 bit ISA. Signed-off-by: Eugeniy Paltsev <[email protected]> Signed-off-by: Evgeniy Paltsev <[email protected]>
1 parent 9a3d925 commit a70187f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/arch/arc/arch.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@
4848
extern "C" {
4949
#endif
5050

51+
#ifdef CONFIG_64BIT
52+
#define ARCH_STACK_PTR_ALIGN 8
53+
#else
5154
#define ARCH_STACK_PTR_ALIGN 4
55+
#endif /* CONFIG_64BIT */
5256

5357
/* Indicate, for a minimally sized MPU region, how large it must be and what
5458
* its base address must be aligned to.

0 commit comments

Comments
 (0)