diff options
author | andrew <andrew@FreeBSD.org> | 2016-02-04 17:22:15 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2016-02-04 17:22:15 +0000 |
commit | 327df1a84adbc8d73c704c55a2b3ceaacb6cdd96 (patch) | |
tree | a67f253f5c64f1f62e504527c892577edf06ea6d /sys/arm64 | |
parent | 1721d478e5d586aabc1829702996b4a44802fcad (diff) | |
download | FreeBSD-src-327df1a84adbc8d73c704c55a2b3ceaacb6cdd96.zip FreeBSD-src-327df1a84adbc8d73c704c55a2b3ceaacb6cdd96.tar.gz |
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
Diffstat (limited to 'sys/arm64')
-rw-r--r-- | sys/arm64/arm64/locore.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm64/arm64/locore.S b/sys/arm64/arm64/locore.S index 9909a42..87abee1 100644 --- a/sys/arm64/arm64/locore.S +++ b/sys/arm64/arm64/locore.S @@ -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: |