mirror of
https://github.com/apache/nuttx.git
synced 2026-09-07 01:16:36 +00:00
arch/arm64 Fix the SP unalignment issues
zynq-mpsoc and zcu111 borad was broken by #15437, because #15437 changes ARM64_CONTEXT_REGS from 36 to 37, resulting in the stack no longer being 16-byte aligned which appears to violate the ARMv8-A architecture's requirement for 16-byte stack alignment. this commit changes ARM64_CONTEXT_REGS to 38 to fix this issues.
This commit is contained in:
parent
4f6940c533
commit
586b9c54ac
1 changed files with 2 additions and 1 deletions
|
|
@ -154,10 +154,11 @@
|
|||
#define REG_SP_EL0 (34)
|
||||
#define REG_EXE_DEPTH (35)
|
||||
#define REG_SCTLR_EL1 (36)
|
||||
#define REG_RESERVED (37)
|
||||
|
||||
/* In Armv8-A Architecture, the stack must align with 16 byte */
|
||||
|
||||
#define ARM64_CONTEXT_REGS (37)
|
||||
#define ARM64_CONTEXT_REGS (38)
|
||||
#define ARM64_CONTEXT_SIZE (8 * ARM64_CONTEXT_REGS)
|
||||
|
||||
#ifdef CONFIG_ARCH_FPU
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue