From: Mark Wooding Date: Mon, 19 Oct 2020 04:31:14 +0000 (+0100) Subject: xchg.S: Maintain correct sp alignment in ARM64 `call_example'. X-Git-Url: https://git.distorted.org.uk/~mdw/xchg-rax-rax/commitdiff_plain/f53b158f49dac49dafe596086aa017037349f485 xchg.S: Maintain correct sp alignment in ARM64 `call_example'. --- diff --git a/xchg.S b/xchg.S index 0d836c7..8e0bf66 100644 --- a/xchg.S +++ b/xchg.S @@ -380,7 +380,7 @@ proc call_example #elif defined(__aarch64__) - stp x29, x30, [sp, #-13*8]! + stp x29, x30, [sp, #-14*8]! mov x29, sp stp x19, x20, [sp, #16] stp x21, x22, [sp, #32] @@ -421,7 +421,7 @@ proc call_example ldp x23, x24, [sp, #48] ldp x25, x26, [sp, #64] ldp x27, x28, [sp, #80] - ldp x29, x30, [sp], #13*8 + ldp x29, x30, [sp], #14*8 ret