Enable checking of the stack alignment. The stack should be aligned to a

16-byte value. With this the hardware will check if a memory access uses
an incorrectly aligned stack pointer as the base address.

Sponsored by:	ABT Systems Ltd
This commit is contained in:
Andrew Turner 2016-02-04 17:22:15 +00:00
parent b5d189b6b6
commit f13ec4b40e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=295270

View File

@ -628,11 +628,11 @@ tcr_early:
sctlr_set:
/* Bits to set */
.quad (SCTLR_UCI | SCTLR_nTWE | SCTLR_nTWI | SCTLR_UCT | SCTLR_DZE | \
SCTLR_I | SCTLR_SED | SCTLR_C | SCTLR_M)
SCTLR_I | SCTLR_SED | SCTLR_SA0 | SCTLR_SA | SCTLR_C | SCTLR_M)
sctlr_clear:
/* Bits to clear */
.quad (SCTLR_EE | SCTLR_EOE | SCTLR_WXN | SCTLR_UMA | SCTLR_ITD | \
SCTLR_THEE | SCTLR_CP15BEN | SCTLR_SA0 | SCTLR_SA | SCTLR_A)
SCTLR_THEE | SCTLR_CP15BEN | SCTLR_A)
.globl abort
abort: