diff options
author | Michael Forney <mforney@mforney.org> | 2020-04-19 16:31:55 -0700 |
---|---|---|
committer | Quentin Carbonneaux <quentin@c9x.me> | 2020-08-06 10:09:28 +0200 |
commit | 84f1e2950b3ab41523f25d205c99e9d8afd7ebba (patch) | |
tree | 1f5fa855fc58f26dd7ba75ea36dc3d157a4db606 /util.c | |
parent | 706d6beca6218caf76f0107d15e79a8f3af1646a (diff) | |
download | roux-84f1e2950b3ab41523f25d205c99e9d8afd7ebba.tar.gz |
arm64: Make sure SP stays aligned by 16
According to the ARMv8 overview document However if SP is used as the base register then the value of the stack pointer prior to adding any offset must be quadword (16 byte) aligned, or else a stack alignment exception will be generated. This manifests as a bus error on my system. To resolve this, just save registers two at a time with stp.
Diffstat (limited to 'util.c')
0 files changed, 0 insertions, 0 deletions