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 <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
This commit is contained in:
Evgeniy Paltsev 2021-04-07 23:19:45 +03:00 committed by Kumar Gala
commit a70187fb31

View file

@ -48,7 +48,11 @@
extern "C" {
#endif
#ifdef CONFIG_64BIT
#define ARCH_STACK_PTR_ALIGN 8
#else
#define ARCH_STACK_PTR_ALIGN 4
#endif /* CONFIG_64BIT */
/* Indicate, for a minimally sized MPU region, how large it must be and what
* its base address must be aligned to.