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:
parent
9a3d925860
commit
a70187fb31
1 changed files with 4 additions and 0 deletions
|
@ -48,7 +48,11 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_64BIT
|
||||||
|
#define ARCH_STACK_PTR_ALIGN 8
|
||||||
|
#else
|
||||||
#define ARCH_STACK_PTR_ALIGN 4
|
#define ARCH_STACK_PTR_ALIGN 4
|
||||||
|
#endif /* CONFIG_64BIT */
|
||||||
|
|
||||||
/* Indicate, for a minimally sized MPU region, how large it must be and what
|
/* Indicate, for a minimally sized MPU region, how large it must be and what
|
||||||
* its base address must be aligned to.
|
* its base address must be aligned to.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue