Author: andrew
Date: Thu Feb  4 17:22:15 2016
New Revision: 295270
URL: https://svnweb.freebsd.org/changeset/base/295270

Log:
  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

Modified:
  head/sys/arm64/arm64/locore.S

Modified: head/sys/arm64/arm64/locore.S
==============================================================================
--- head/sys/arm64/arm64/locore.S       Thu Feb  4 17:09:43 2016        
(r295269)
+++ head/sys/arm64/arm64/locore.S       Thu Feb  4 17:22:15 2016        
(r295270)
@@ -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:
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to